Hi again,
I've tried to set up the login process. However, I always get the message: Invalid success param: URL host must be one of: localhost, xxx
I've already followed this comment to setup the login process correctly:
https://github.com/appwrite/sdk-for-react-native/issues/34#issuecomment-3063759130
However, I still get the same error message. When logging the deepLink I get something like:
appwrite-callback-<PROJECT_ID>://
My login function looks like this:
const deepLink = new URL(makeRedirectUri({ preferLocalhost: true }));
const scheme = `${deepLink.protocol}//`;
const loginUrl = await account.createOAuth2Token(
OAuthProvider.Google,
`${deepLink}`,
`${deepLink}`
);
const result = await WebBrowser.openAuthSessionAsync(`${loginUrl}`, scheme);
if (result.type === "success") {
const url = new URL(result.url);
const secret = url.searchParams.get('secret');
const userId = url.searchParams.get('userId');
if (secret && userId) {
try {
await account.createSession(userId, secret);
} catch (error) {
if (error instanceof AppwriteException) {
console.log(error.message);
console.log(error.name);
}
}
}
}
**Server Version: ** 1.7.4 SDK Version 0.11.0
Recommended threads
- Error: Trying to install appwrite on sub...
``` [Error] Method: POST appwrite | [Error] URL: /v1/account appwrite | [Error] Type: Appwrite\Extend\Exce...
- Rate limit
How do I solve "Signup Failed, Rate limit for the current endpoint has been exceeded. Please try again after some time"? I have Pro and around 2k requests per ...
- JavaScript heap out of memory during bui...
I am running into heap out of memory when I am trying to build an Appwrite site. Usually this can be fixed by modifying the `max-old-space-size` configuration, ...