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 });
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 }; } };`
Recommended threads
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Create a new paid tier
Current pricing seems reasonable enough about what is someone getting for 25$. But for some people most of these resouces are getting wasted. Like the bandwidt...
- [Bug] Appwrite Auth User Prefs
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case