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
Summary
Developers are discussing methods to verify email addresses without requiring users to be logged in. One developer suggests using a Magic URL or creating a function to handle verification via query parameters. Another mentions using a backend or creating an API route for verification. An outdated Github gist is referenced, highlighting the need for a logged-in session for verification. Ultimately, the solution involves creating a simple web page to execute the verification request with the userId and token provided by the app.
Steven
Mar 6, 2024, 18:36
you must log in to trigger the email verification. You can use a separate web page to confirm the email, though
Tobias Kietzmann
Rank 2: Process
Mar 6, 2024, 18:39
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.