dbMI
01/27/2021, 4:10 AMrp
01/27/2021, 5:06 AMtredstone
01/30/2021, 1:29 AM< SuperTokens core threw an error for a POST request to path: '/recipe/session' with status code: 400 and message: Field name 'userDataInDatabase' is invalid in JSON input
tredstone
01/30/2021, 1:29 AMtredstone
01/30/2021, 1:30 AMtredstone
01/30/2021, 1:31 AMawait Session.createNewSession(res, user.ext_id, jwtPayload, null)
this is how i've imported Session:
const Session = require("supertokens-node/recipe/session");
rp
01/30/2021, 4:51 AMtredstone
01/30/2021, 4:59 AMrp
01/30/2021, 4:59 AMtredstone
01/30/2021, 5:00 AMrp
01/30/2021, 5:01 AMrp
01/30/2021, 5:20 AMtredstone
01/31/2021, 4:11 AMtredstone
01/31/2021, 4:11 AMtredstone
01/31/2021, 4:23 AMrevokeAllSessionsForUser
method but it doesn't seem to be expiring the token
calling another authenticated endpoint immediately after, doesn't seem to be triggering an error with Session.verifySession() middlewaretredstone
01/31/2021, 4:35 AMrp
01/31/2021, 4:38 AMkey_value
table is updated.. as sessions are created, the session_info
table is updated. As users are signed up, then emailpassword_users
is updated and so on..rp
01/31/2021, 4:43 AMrevokeSession
function after the verifying the session.
Calling revokeAllSessionsForUser
will only revoke the session from the db and not the cookies. This means that in case access token blacklisting is not on, the current access token in the cookie will continue to work, until it expires.
To make access token expire immediately, please see https://supertokens.io/docs/emailpassword/advanced-users/advanced-session/access-token-blacklistingtredstone
01/31/2021, 4:49 AMtredstone
01/31/2021, 4:49 AMrp
01/31/2021, 4:49 AMrp
01/31/2021, 4:50 AMrp
01/31/2021, 4:50 AMtredstone
01/31/2021, 12:23 PMrp
01/31/2021, 12:24 PMtredstone
01/31/2021, 12:24 PMtredstone
01/31/2021, 12:24 PMrp
01/31/2021, 12:24 PMtredstone
01/31/2021, 12:24 PM