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
- Clean install of 1.9.0 shows errors in a...
I just run a full clean install of Appwrite on my server following the Manual installation guide in the docs page. The console seems to work, visually there d...
- Setup custom domain on selfhosted behind...
Hello everyone, can anyone help me to setup a custom domain on a selfhosted appwrite instance thats running behind cloudflare tunnels? Current setup: Appwrite r...
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...