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
- Charged after Downgrade
I downgraded from the pro plan last month, but itβs still trying to charge my card this month and my account has been restricted
- How to disable appwrite/embedding from s...
Hi everyone! I'm currently running a self-hosted instance of Appwrite. For my current use case, I don't need the AI/embedding features, and I noticed the `app...
- Sydney Cloud Sites: App Git deployment a...
Project ID: rentwize-db The app Site fails after the build completes with a missing build archive error. Site id: app Framework: TanStack Start SSR Output dir...