supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54 stars 13 forks source link

cookieHandler documentation (for Quasar/Capacitor custom implementation) #156

Closed marchalb closed 2 years ago

marchalb commented 2 years ago

We try to make Supertokens workking with Quasar/Capacitor. It works on the web but not on ios/android devices.

After analysing the source code, we suspect that it is due to the cookie management. Luckily it looks like Supertokens planned for the possibility to implement a custom cookie management during the initialisation (through the cookieHandler parameter).

But searching the web we could not find no example, no documentation on such interesting feature. Did we miss something?

rishabhpoddar commented 2 years ago

Hey! We don't have any docs for cookieHandler yet, but we do have an example in the context of electron app: https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-thirdpartypasswordless-electron/src/cookieHandler.ts.

Since this is not really a bug, I am closing this.

marchalb commented 2 years ago

Many thanks Rishabh, actually since Electron is of the same familly as Capacitor, implementing the custom cookieHandler as is, solved the problem we add with Quasar /Capacitor on IOS. It is still a problem on Quasar/Capacitor/Android, so more work/debugging needed