
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
- Custom SMS providers for OTP
Is there is any way that we can add custom SMTP servers for sending OTPs. We are seeing issues with appwrite default provider, it doesn't send otps for some num...
- Custom Auth flows
Is there a way to create a user session with just the username from admin client ? We want to implement custom auth flow , once we verify every thing, we want ...
- Processing attributes blocking progress
Hello, I created a collection yesterday and two attributes were processing. I left it as is yesterday since I wasn't working with this collection but they're st...
