![](https://cdn.discordapp.com/embed/avatars/0.png)
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
- nextjs SSR session in CSR
Hi, How could you access the user session in a csr component I need access to the session for handling real time updates. As the cookie that contains the sessio...
- [AppwriteException: Network request fail...
Hi there, I am trying to upload a picture to my storage in appwrite but it is giving me an error as titled. Here is my code: ```export const getFilePreviewYes ...
- Can't Login via Discord OAuth
Hey <a:peepoShy:907681584826695811> I receive "AppwriteException: User (role: guests) missing scope (account)" & "<appwriteUrl>/v1/account 401 (Unauthorized)" ...
![](/images/bgs/pre-footer.png)