Fix 'Missing required attribute "expire"' on users.createSession()
#8308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fix expire error when creating user session
Before this, the Create session API call would throw:
This is because the
expire
attribute is required, but it was omittedfrom the document. This PR ensures the
expire
attribute is set whencreating the session document.
Fixes #8280
Update session secret to be longer
The create session endpoint created a 6 character secret which is too
short. This changes the secret to be 256 characters which is in line
with the secret for
account.createEmailPasswordSession()
.Test Plan
Added a test case
Related PRs and Issues
users.createSession()
#8280Parent PR:
Checklist