Is there any way/workaround to verify an email-address without being logged in? We're building a mobile app and if this isn't possible we have to introduce uni links only for this case - ideally i can setup a simple web page which executes the verfication request with just the userId and the token provided by appwrite
you must log in to trigger the email verification. You can use a separate web page to confirm the email, though
Once your user is back in your website or app, you can use both the userId and secret params provided as part of the callback URL to complete the verification using the updateVerification method. Note that this method is only available for logged-in users. Your user needs to have a valid session to trigger this API call.
is this outdated? https://gist.github.com/eldadfux/2eea9df7cc6dc18b63955dd8b10ad758
yes, that's outdated
You can technically use the backend to confirm the email
server SDK, can't you?
couldn't he just make an API route or function route that, when clicked, verifies the user with the passed ID?
i guess you could create a function and use that function as the redirect URL
i will just create a page which parses the query parameters and call a function to verify
this should work but then i have to manage tokens by myself i guess
there are no other tokens needed besides the secret that comes from the email
I mean you could also use the Server SDK, use a function to do it
there's no need for a server SDK
You could also use a Magic URL and then on the confirmation page for the magic URL call it a confirmation no?
oh true
yes so i just can do it very easy, thanks - i just read the gist which looks updated and is official 🙂
Recommended threads
- Error code 526
Site down. Invalid SSL certificate Error code 526 Could anyone take a look please, thank you. Please DM me for detail.
- Appwrite console Oauth providers issue
Hi, I think I found an issue with the oauth providers tab on the console. If I set up a provider and I turn it on, after about a day it automatically disables i...
- Realtime Connection Error After Updating...
I get the following error message now when the realtime subscription picks up a new message. There's more to the error but it makes the discord message too long...