Like the title said, not really sure how you would do this properly. My current bit of code:
const handleResendEmail = async () => {
setIsResending(true);
try {
const account = new Account(client);
await account.createVerification('thravo://verify');
setSnackbarMessage('Verification email resent. Please check your inbox.');
setShowSnackbar(true);
} catch (error) {
console.error('Resend Verification Error:', error);
setSnackbarMessage('Failed to resend verification email. Try again later.');
setShowSnackbar(true);
} finally {
setIsResending(false);
}
};
I know this is likely not how this is done, since Appwrite apparently requires an actual url? Since I'm getting the error:
Sign Up Error: [AppwriteException: Invalid url param: URL host must be one of: localhost, api.thravo.net, console.thravo.net]
This is on a self hosted instance, my application is using react native, expo, and expo go for testing purposes. Yes I have a custom SMTP server that I'm hosting on a different server, and yes it does work I've tested it.
One second I forgot to include the actual SignUpScreen bits of code that calls for a verification code to be sent
Pretty simple:
const appDeeplink = `thravo://verify`;
await account.createVerification(appDeeplink);
Most of this code really isn't needed for this question tbh.
Recommended threads
- restore backup on another server with an...
I managed to restore DB+Volumes from a server to another one with another domain but when I try to click my project on the console, I get error "404 - Project w...
- The console isnt showing documents
In console ui saved documents are being shown on frontend but i can see its showing 4 or number of docs available but in rows its only showing single doc and th...
- Create a project via REST API or SDK, mi...
I am currently self-hosting Appwrite in my local machine, deployed using docker script in the website. I also installed `appwrite-cli` through npm. I am trying...