[passwordless] I'm having this issue where the aut...
# support-questions
p
[passwordless] I'm having this issue where the authentication does not work on mobiles, but it does work on desktops, any ideas on what it could be about? It's the same web app, same everything
r
Can you please be more specific @pepegc
Can you enable debug logging and then show me the output of that?
Also, which mobile SDK of ours are you using?
p
so I have an email form, followed by the code form. email went in, I received the code, typed the code, yet wasn't authorized
not using a particular mobile SDK. There's one? I'm using the python SDK in the backend
r
You need to use our frontend SDK for it to work.
We have SDK for react native
(From mobile side)
The SDK helps with session management which is what keeps the user logged in post sign in
p
I'm using your vanilla JS recipe with your frontend sdk
I built my own UI
shouldn't that work with mobiles too?
r
No. That’s only for the web
p
this is also web, just on the mobile
please don't tell me it's different
safari on an iphone
r
Ohhh. I see. Well. Then it should work
I misunderstood
p
oh ok
had a small heart attack for a sec
😄
r
Can you enable debug logging on the backend and show me the output?
And does it work for safari desktop?
p
damn I just tried and it does not
a few test users told me they had issues loggin in from their mobiles, I guess they were all using iphones with safari
how do u even open dev tools on safari.. .gimme a sec
r
So I think I know the issue. It’s cause safari disabled third party cookies by default
Is your api domain and website domain on different domains?
p
yes, they area
r
That’s why it’s not working
p
but it works on other browsers... I've taken care of cors and allowed origins
do u know of a workaraound?
r
To solve it, you need to setup a domain for your api that has the same domain (with different sub domain) to query your api
It’s working on other browsers cause they don’t disable third party cookies by default.
And then you would need to change the apiDomain on frontend and backend to be that domain
p
right
so api.mydomain.com would work?
r
Yup! It would
p
Ima try that and get back to you, thanks for the help
btw how do you deal with this if I was consuming an external api?
r
What do you mean?
p
ahh no, the problem is the third party cookies, not third party requests... ?
r
Yup.
p
it's working, thanks!
excellent catch
r
Thanks! 😄
3 Views