rp
08/10/2021, 12:48 PMZoomeez
08/10/2021, 12:49 PMrp
08/10/2021, 12:50 PMKillian
08/11/2021, 5:11 AMKillian
08/11/2021, 5:11 AMkakashi_44
08/11/2021, 5:56 AMverifySession
middleware. You can check the details here: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/sessions/session-verificationKillian
08/11/2021, 5:57 AMKillian
08/11/2021, 5:59 AMKillian
08/11/2021, 5:59 AMkakashi_44
08/11/2021, 6:04 AMKillian
08/11/2021, 6:09 AMkakashi_44
08/11/2021, 6:19 AMuseSessionContext()
or Session.doesSessionExist()
in that case: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/sessions/checking-session-front-endZeferiniX
08/12/2021, 3:56 PMkakashi_44
08/12/2021, 10:24 PMKillian
08/13/2021, 4:17 AMKillian
08/13/2021, 4:18 AMKillian
08/13/2021, 4:19 AMrp
08/13/2021, 7:36 AMrp
08/13/2021, 7:38 AMrelentless
08/13/2021, 8:02 AMZeferiniX
08/13/2021, 9:22 AMrp
08/13/2021, 9:26 AMsessionRequired: false
(See https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/sessions/session-verification#optional-session-verification)
This would be applied to all requests from your apollo client. Then in you graphql server, maybe you could somehow check if req.session !== undefined
?rp
08/13/2021, 9:27 AMZeferiniX
08/13/2021, 9:30 AMZeferiniX
08/13/2021, 9:35 AMreq
, any other alternatives?ZeferiniX
08/13/2021, 9:37 AMrp
08/13/2021, 9:38 AMres
object at all from graphql.. only the req
object - which you seem to be able to get,rp
08/13/2021, 9:38 AMZeferiniX
08/13/2021, 9:42 AMonConnect
https://github.com/apollographql/subscriptions-transport-ws#subscriptionserver
not quite sure where to plug the middleware tho 🤔ZeferiniX
08/13/2021, 9:42 AM