SeanT
03/22/2022, 6:48 PMrp
03/22/2022, 6:51 PMhttps://example.com
. It doesn't really matter in this case.SeanT
03/22/2022, 6:57 PMrp
03/22/2022, 6:58 PMSeanT
03/22/2022, 6:59 PMrp
03/22/2022, 7:01 PMSeanT
03/22/2022, 7:03 PMrp
03/22/2022, 7:04 PMSeanT
03/22/2022, 7:09 PMrp
03/22/2022, 7:10 PMSeanT
03/22/2022, 7:11 PMrp
03/22/2022, 7:11 PMcreateNewSession
functioncreateNewSession
function attaches session tokesn as cookies and sends it to the frontend.
The frontend then sends the access token to your API which can use the verifySession
function to verify the session.
If the access token expires, the frontend calls the refresh API (Exposed by the middleware you implemented above).
If you call the sign out function on the frontend via our SDK, it calls the sign out API exposed by the middleware as well.SeanT
03/22/2022, 7:15 PMrp
03/22/2022, 7:15 PMSeanT
03/22/2022, 7:15 PMrp
03/22/2022, 7:16 PMSeanT
03/22/2022, 7:23 PMrp
03/22/2022, 7:24 PMSeanT
03/22/2022, 7:24 PMrp
03/22/2022, 7:24 PMSeanT
03/22/2022, 7:25 PMrp
03/22/2022, 7:25 PMSeanT
03/22/2022, 7:25 PMrp
03/22/2022, 7:25 PMSeanT
03/22/2022, 7:26 PMrp
03/22/2022, 7:26 PMSeanT
03/22/2022, 7:28 PMrp
03/22/2022, 7:28 PMSeanT
03/22/2022, 7:30 PMrp
03/22/2022, 7:30 PMSeanT
03/22/2022, 7:32 PMrp
03/22/2022, 7:32 PM