Error Creating User: AppwriteException: Invalid 'url' param: URL host must be one of: localhost ...
- 0
- React Native
- Auth

I'm working on authenticating a user for my expo app.
While the error does imply the error was in creating the user, the user is indeed created as I can see in the console. My code looks like this:
export const createUser = async (email, password) => {
try {
const newAccount = await account.create(ID.unique(), email, password);
if (!newAccount) throw Error('Error creating user');
// login the user
await Login(email, password);
// Send verification email
console.log('login compl')
const verify = await account.createVerification('bookquest://(auth)/verify');
console.log(verify)
return newAccount;
} catch (error) {
console.log(error);
throw new Error(error);
}
}
// signin
export const Login = async (email, password) => {
try {
const session = await account.createEmailPasswordSession(email, password);
return session;
} catch (error) {
throw new Error(error)
}
}```
The terminal looks like this:
iOS Bundled 278ms node_modules/expo-router/entry.js (1 module)
LOG login compl
LOG [AppwriteException: Invalid url
param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io]```
Would appreciate some guidance as I am stuck and really would like to move forward with my project

I believe it has to do with your create verification step.

This is from the docs
Only URLs from hostnames in your project platform list are allowed.
Recommended threads
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
- SMS based authentication issue AppwriteE...
Hi, I am creating sms based login. I am able to send SMS code to my real number however I am receving this error. I can log the "secret" and i can see it is not...
- Migration issues
Hey, quick question — I’m currently running a project on an Appwrite Pro account, but I recently got access to the GitHub Student Pack. Is there a way to migrat...
