VonMorgen
11/04/2022, 4:24 PM{"status":"EMAIL_ALREADY_VERIFIED_ERROR"}
.
But if I refresh the Sesseion afterwards (https:///auth/session/refresh), the FrontToken still has the verification set to false:
json
{
"up": {
"st-ev": {
"v": false
}
}
}
If I use the Server side api (python) to call is_email_verified
directly, i also get verified=True
.
When does supertokens change the value in the FrontToken?
(I noticed that the Token did refresh after I switched to a different user and back in the same window)rp_st
11/04/2022, 4:41 PMrp_st
11/04/2022, 4:42 PMrp_st
11/04/2022, 4:42 PMVonMorgen
11/04/2022, 4:43 PMrp_st
11/04/2022, 4:43 PMrp_st
11/04/2022, 4:43 PMVonMorgen
11/04/2022, 4:45 PMjson
{
"ate": 1667583850549,
"uid": "166e07a4-50ea-4b56-9f80-8adbfb415fa8",
"up": {
"st-ev": {
"t": 1667576931314,
"v": false
},
"supabase_token": "<supabase_token>"
}
}
rp_st
11/04/2022, 4:46 PMrp_st
11/04/2022, 4:47 PMrp_st
11/04/2022, 4:47 PMVonMorgen
11/04/2022, 4:50 PMjson
{
"status": "OK",
"isVerified": true
}
VonMorgen
11/04/2022, 4:51 PM"v":true
rp_st
11/04/2022, 4:52 PMVonMorgen
11/04/2022, 4:52 PMjson
{
"ate": 1667584272679,
"uid": "166e07a4-50ea-4b56-9f80-8adbfb415fa8",
"up": {
"st-ev": {
"t": 1667580595258,
"v": true
},
"supabase_token": "..."
}
}
rp_st
11/04/2022, 4:53 PMrp_st
11/04/2022, 4:53 PMrp_st
11/04/2022, 4:53 PMVonMorgen
11/04/2022, 5:04 PMrp_st
11/04/2022, 5:04 PMVonMorgen
11/04/2022, 5:05 PMVonMorgen
11/04/2022, 5:06 PMrp_st
11/04/2022, 5:06 PMrp_st
11/05/2022, 4:23 AMVonMorgen
11/06/2022, 12:27 PMrp_st
11/06/2022, 12:29 PMrp_st
11/06/2022, 12:30 PMrp_st
11/06/2022, 12:30 PMrp_st
11/06/2022, 12:31 PMVonMorgen
11/06/2022, 12:32 PMrp_st
11/06/2022, 12:33 PMrp_st
11/06/2022, 12:33 PMVonMorgen
11/06/2022, 12:34 PMrp_st
11/06/2022, 12:36 PMfalse
. Then the client should rediect the user to the email verification screen in which the first step should be to call the API to check if the email is verified or not and this would update the session claim.
With the new session claim, the frontend should just redirect the user back to their previous screen.rp_st
11/06/2022, 12:37 PMVonMorgen
11/06/2022, 12:37 PMVonMorgen
11/06/2022, 12:38 PMrp_st
11/06/2022, 12:38 PMVonMorgen
11/06/2022, 12:38 PMrp_st
11/06/2022, 12:38 PMrp_st
11/06/2022, 12:38 PMVonMorgen
11/06/2022, 12:38 PMVonMorgen
11/06/2022, 12:39 PMrp_st
11/06/2022, 12:39 PMVonMorgen
11/06/2022, 12:39 PMrp_st
11/06/2022, 12:39 PM