You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constauthHeader=req.headers.authorizationconsthasAuthHeader=authHeader.startsWith("Bearer ")constsessionToken=hasAuthHeader
? authHeader.slice(7,authHeader.length)
: nullconstsession=awaitory.toSession({cookie: req.cookies.join("; "),xSessionToken: sessionToken,}).catch((err)=>{// Check the error to see if it's a 401 / 403 -> not logged in})
Preflight checklist
Ory Network Project
No response
Describe the bug
in the documentation, we need xSessionToken and cookie: https://www.ory.sh/docs/identities/sign-in/check-session-token-cookie-api :
But in the code, we just need cookies:
https://github.com/ory/kratos-selfservice-ui-node/blob/master/src/pkg/middleware.ts#L72
I can't find any explanation about what xSessionToken is used for.
Reproducing the bug
Relevant log output
No response
Relevant configuration
No response
Version
@ory/client": "^1.4.2",
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker
Additional Context
No response
The text was updated successfully, but these errors were encountered: