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
- Resource limit error using API for proje...
Project ID: 67414182001dfe44c386 Endpoint: https://fra.cloud.appwrite.io/v1 Web Dashboard works fine, able to CRUD. But API return error ``` { "message": "...
- Failed to receive appwrite reset passwor...
Hey there, I forgot my password for my appwrite account but when i use forgot password, i dont get an email to reset the account but when i try to create a new ...
- Opening Project I get "500 Internal Erro...
Opening Project I get "500 Internal Error" added what i see on the page and in dev console