account.createVerification('https://cloud.appwrite.io/v1/account/verify'); not working
- 0
- Android
- Databases
- Auth
- Apple
- React Native

here is how my code looks for handling sign ups i keep getting Error sending verification email: [AppwriteException: Invalid url
param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io]
const handleSignUp = async () => { const isValid = validateForm();
if (isValid) {
if (!agreedToTerms) {
Alert.alert('Error', 'Please agree to the Terms and Conditions.');
return;
}
setIsLoading(true); // Start loading
try {
// Create user in Appwrite
const response = await account.create(
ID.unique(),
email,
password,
name
);
// Log the user in to give them the necessary scope
await account.createEmailPasswordSession(email, password);
// Send verification email with the redirect URL
try {
await account.createVerification('https://cloud.appwrite.io/v1/account/verify');
Alert.alert(
'Email Verification',
'A verification email has been sent. Please verify your email before logging in.',
[{ text: 'OK', onPress: () => navigation.replace('SignIn') }]
);
} catch (verificationError) {
console.error('Error sending verification email:', verificationError);
Alert.alert('Error', 'Failed to send verification email. Please try again later.');
}
//Below are just some errors and other types of data
Recommended threads
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
- Appwrite realtime stopped working all of...
In our production environment, Appwrite Realtime suddenly stopped working and no updates are coming through , can you confirm if there are any known issues?
- Create platform and can not connect ping
I created a new platform but when I cloned the source, I didn't see the lib/... folder, only env. Then I created a .env file and added those files, then pinged ...
