M̸̹̣i̼̗č̹̰o̧̲ͅ
10/22/2021, 9:13 PMrp
10/22/2021, 9:13 PMrp
10/22/2021, 9:13 PMM̸̹̣i̼̗č̹̰o̧̲ͅ
10/22/2021, 9:14 PMrp
10/22/2021, 9:14 PMKitsuneKenshi
10/30/2021, 7:56 PMreq.session
, where it seems like TS does not detect session
as a property of Request. I did tried to fix it somehow or find answer of what may be causing it, but couldn't find anything helpful. Here I only found one question related to this issue and the answer wasn't really helpful. I'm using Nuxt 2 with Vue and express. If I could get any help with that it would be great.rp
10/30/2021, 9:51 PMrp
10/30/2021, 9:51 PMKitsuneKenshi
10/30/2021, 9:55 PMconstantinos
11/01/2021, 2:48 PMrp
11/01/2021, 2:50 PMconstantinos
11/01/2021, 2:51 PMconstantinos
11/01/2021, 2:51 PMrp
11/01/2021, 2:53 PMrp
11/01/2021, 2:53 PMrp
11/01/2021, 2:54 PMconstantinos
11/01/2021, 2:58 PMconstantinos
11/01/2021, 2:59 PMconstantinos
11/01/2021, 2:59 PMrp
11/01/2021, 3:06 PMconstantinos
11/01/2021, 3:33 PMrp
11/01/2021, 3:33 PMconstantinos
11/01/2021, 3:34 PMconstantinos
11/01/2021, 3:34 PMconstantinos
11/01/2021, 3:35 PMrp
11/01/2021, 3:37 PMrp
11/01/2021, 3:37 PMconstantinos
11/01/2021, 3:38 PMrp
11/01/2021, 3:41 PMrp
11/01/2021, 5:50 PMverifySession
middleware.
3) You could store the user's session ID on the frontend and pass that to Hasura when you query it. Then Hasura can use a custom auth hook to query SuperTokens' core to check if the session ID is valid or not.
----------------------
Out of these, number (2) is the most secure since it doesn't expose any of the session tokens to the frontend (therby preventing token theft via XSS attacks)
(1) is the most popular since it's easy to use.
----------------------
Anyhow, you would need to host an API server which would integrate with SuperTokens' backend SDK.