krrishan
10/26/2023, 7:36 AMelse if (err.type === Session.Error.TOKEN_THEFT_DETECTED) {
Session.revokeSession(session.getHandle());
}
how will we revoke session as it has already entered cache block , we wont be having session .
Reference link used :
https://supertokens.com/docs/session/common-customizations/sessions/session-verification-in-api/get-session#using-getsession-without-req--res-objectsrp_st
10/26/2023, 7:37 AMrp_st
10/26/2023, 7:39 AMrp_st
10/26/2023, 7:39 AMerr
object has err.sessionHandle
i thinkkrrishan
10/26/2023, 7:44 AMrp_st
10/26/2023, 7:45 AMrp_st
10/26/2023, 7:47 AMerr.payload.sessionHandle
krrishan
10/26/2023, 7:53 AM{
> type: 'UNAUTHORISED',
> payload: { clearTokens: true },
> errMagic: 'ndskajfasndlfkj435234krjdsa',
> fromRecipe: 'session'
> }
>
How can I be sure if sessionHandle will be there ?
> as I am using any for errrp_st
10/26/2023, 7:54 AMrp_st
10/26/2023, 7:56 AMrp_st
10/26/2023, 7:56 AMkrrishan
10/26/2023, 7:57 AMrp_st
10/26/2023, 7:57 AMkrrishan
10/26/2023, 7:58 AMkrrishan
10/26/2023, 7:58 AMrp_st
10/26/2023, 8:00 AMgetSessionWithoutRequestResponse
which is not the same function as getSession
rp_st
10/26/2023, 8:00 AMkrrishan
10/26/2023, 9:28 AMrp_st
10/26/2023, 12:45 PMkrrishan
10/27/2023, 3:02 PMrp_st
10/27/2023, 3:04 PM