i was able to use google login on localhost, but when i swich to virtual andoid wtih eas build i get {"type":dismiss} from WebBrowser, wtf is happening. i created web profile and set Hostname to "*", code: `export const signInWithGoogle = async () => { try { const redirecting = Linking.createURL("google", { scheme: "quizapp", isTripleSlashed: false });
TypeScript
const responseData = await account.createOAuth2Token(
OAuthProvider.Google,
redirecting
);
const res = await WebBrowser.openAuthSessionAsync(
responseData.toString(),
redirecting,
);
console.log("googleLogin", res)
if (res.type === "success") {
const data = parseUrl(res.url)
const secret = data?.query?.secret
const userId = data?.query?.userId
const ses = await account.createSession(userId, secret);
return { success: true, session: ses };
}
} catch (error) { console.log(error); return { success: false }; } };`
TL;DR
Oauth2 is working on localhost but not on mobile, getting {"type":dismiss} error. The issue may be related to the redirect URL setting. To solve this, check the redirect URL settings and make sure it's configured correctly for mobile.Recommended threads
- Invalid Origin. Register your new client...
- CreateTables enum
What's the correct way of creating an enum column with the new definition of createTable?
- How to handle ghost accounts created by ...
Appwrite create the account with the email and send an invitation link with a secret. I am able to accept the invitation and add the account as a member on the ...