https://supertokens.com/ logo
c

codingtomato

05/10/2022, 10:07 AM
Hey 👋 me again with another problem. I use Supertokens for a Login into an app. It works fine on the webbrowser but when I try it on my smartphone via Capacitor.js I get a endless refresh loop when I call the doesSessionExist() function. Thanks in advance!
r

rp

05/10/2022, 10:10 AM
Hey!
And all the refresh calls succeed with 200?
c

codingtomato

05/10/2022, 10:11 AM
Yes each one succeeds with 200
r

rp

05/10/2022, 10:12 AM
Can we can on a quick call for debugging?
c

codingtomato

05/10/2022, 10:12 AM
yes 👍
do you want me to call you?
n

nkshah2

05/10/2022, 10:15 AM
@codingtomato Ive DMed you a link
r

rp

05/10/2022, 10:16 AM
@nkshah2 can help. Thanks
n

nkshah2

05/10/2022, 10:27 AM
@codingtomato Thanks for the call, so there is already a fix on the way for that issue (should be released soon). Once its released I can help you with the further steps
c

codingtomato

05/10/2022, 11:02 AM
thanks for investigating! Could you provide me with a more specific timeline or a link where I can follow the progress? Thanks in advance
r

rp

05/10/2022, 11:03 AM
should be released sometime this week for sure
c

codingtomato

05/10/2022, 11:04 AM
perfect! thanks
r

rp

05/10/2022, 2:44 PM
hey @codingtomato we have released a new version of the supertokens-website SDK (v10.1.0) which gives you the ability to define your own way to store cookies - you need to define a storage for them for the SDK to work via Capacitor.js An example storage that stores cookies in localstorage can be found here: https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-thirdpartypasswordless-electron/src/cookieHandler.ts Hope this helps
happened waaayyy sooner than "sometime this week" hehe..
c

codingtomato

05/10/2022, 4:07 PM
Perfect ... thank you so much ... I will give it a try tomorrow
So far it works perfectly! Thank you again @rp @nkshah2
3 Views