
For 3 days I no longer understand why redirects with Google Auth on React Native do not work at all. I saw people asking the problem but the solutions do not work for me. Please help me.
// ... code
const oauthProvider = { google: OAuthProvider.Google, apple: OAuthProvider.Apple, }[provider.toLowerCase()];
if (!oauthProvider) {
throw new Error(`Unsupported provider: ${provider}`);
}
const redirectSuccessUri = Linking.createURL("/");
const redirectFailureUri = Linking.createURL("/error");
const response = account.createOAuth2Token(
oauthProvider,
redirectSuccessUri,
redirectFailureUri
);
if (!response) {
throw new Error("Response is undefined");
}
// ... code
Recommended threads
- Appwrite realtime didn't work
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
- Auth showing wrong numbers of users
I have 6 verified users but it shows 5 24 hours before I have 5 users that time its showing 4 users. Project ID: `68aed705001ef67ac979`
- Appwrite + Google OAuth session created,...
Hey everyone, I’m running into a weird issue with Appwrite’s Google OAuth provider and would love some insight. Here’s my setup: - **Stack:** React app...
