Closed nicetomytyuk closed 3 weeks ago
Closing this issue as in the authentication application, after the signInWithPassword()
and the redirect, there was a signOut()
by removing it and by handling the signOut()
only from the main application and not the auth, resolve the issue.
Bug report
Describe the bug
When I try to use the
setSession()
I get a response error like: "Session from session_id claim in JWT does not exist", by trying to decode the JWT token, I am able to see that it has thesession_id
. The authentication is create in two steps,signInWithPassword()
in a project similar to "Google Auth" which then do a redirect to another project with theaccess_token
andrefresh_token
in the query strings, that then is consumed and set in thesetSession()
.Steps to reproduce the behavior, please provide code snippets or a repository:
signInWithPassword()
session.access_token
and thesession.refresh_token
access_token
and therefresh_token
from the query string and usesetSession()
.The
setSession()
at that point will return:{ "code": 403, "error_code": "session_not_found", "msg": "Session from session_id claim in JWT does not exist" }
Expected behavior
The
setSession()
must return a valid session instead of error 403.Screenshots
System information
Tried with the following version of auth-js: 2.64.2 and the 2.61.0 (This one is prefered as it prevents the LockManager error in Angular).