Skip to content

Conversation

@nkshah2
Copy link
Contributor

@nkshah2 nkshah2 commented Apr 26, 2023

Summary of change

Related issues

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

  • Changelog has been updated
  • coreDriverInterfaceSupported.json file has been updated (if needed)
    • Along with the associated array in supertokens/constants.go
  • frontendDriverInterfaceSupported.json file has been updated (if needed)
  • Changes to the version if needed
    • In supertokens/constants.go > version variable
  • Had installed and ran the pre-commit hook
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.

Remaining TODOs for this PR

  • Update Changelog

@nkshah2 nkshah2 requested a review from porcellus April 26, 2023 13:35
@nkshah2 nkshah2 changed the title feat: Add functions based on ADR 0030 feat: Add functions based on ADR 0030 [JWT Rework #1] Apr 26, 2023
@nkshah2 nkshah2 marked this pull request as ready for review April 26, 2023 14:58
return CreateNewSessionWithContextWithoutRequestResponse(userId, accessTokenPayload, sessionDataInDatabase, disableAntiCSRF, nil)
}

func GetSession(req http.Request, res http.ResponseWriter, options *sessmodels.VerifySessionOptions) (*sessmodels.SessionContainer, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not return a pointer sessmodels.SessionContainer

return GetSessionWithContext(req, res, options, &map[string]interface{}{})
}

func GetSessionWithoutRequestResponse(accessToken string, antiCSRFToken *string, options *sessmodels.VerifySessionOptions) (*sessmodels.SessionContainer, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not return a pointer sessmodels.SessionContainer

@nkshah2 nkshah2 requested review from porcellus and rishabhpoddar May 2, 2023 09:46
@rishabhpoddar rishabhpoddar merged commit bd2591c into feat/jwt-rework May 3, 2023
@rishabhpoddar rishabhpoddar deleted the jwt-rework/request-response-functions branch May 3, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants