Rank 1: Thread
Google login on mobile devices.
Votes
0
Replies
24
Participants
Unknown
Messages
25
What's your code?
Can you check the network and console logs?
You might be running into a 3rd party cookie problem. To solve that, you need a custom domain
Rank 1: Thread
Can I do that on mobile ?
Why not?
Rank 1: Thread
Im not experienced with IOS device (safari) F11. Is there any way can i prototype that on my PC ?
Prototype what?
Rank 1: Thread
I added custom domain appwrite.peksai.com
And did you update your app to use that for your endpoint?
Rank 1: Thread
const handleGoogleLogin = async () => { setLoading(true); setError(null); setSuccess(null);
try { await authService.googleLogin(); // Ensure this returns a promise } catch (err) { setError(err.message || "Google giriş başarısız. Lütfen tekrar deneyin."); } finally { setLoading(false); } };
-- googleLogin = () => { return AuthService.account.createOAuth2Session( "google", "http://www.peksai.com/", "http://www.peksai.com/login" ); };Rank 1: Thread
Not atm, can you tell me how to do that?
Rank 1: Thread
client .setEndpoint("https://cloud.appwrite.io/v1") .setProject("");i assume i need to change this right?
to
https://appwrite.peksai.com ?
Rank 1: Thread
Rank 1: Thread
https://appwrite.peksai.com/account
GETS 404 not found atm.
Rank 1: Thread
You're missing the v1
Rank 1: Thread
Rank 1: Thread
It gives not allowed atm.
Rank 1: Thread
do i need to add new api route here ?
Rank 1: Thread
Rank 1: Thread
Ok i think i need to change callback url on there instead.
The URI should be the same except for the hostname/domain
Rank 1: Thread
It works on PC now. Need to test it on mobile tho
Rank 1: Thread
Its fixed.
Rank 1: Thread
Custom domain solved it. thank you.
Rank 1: Thread