I have been trying to authenticate the user with an email session but I am getting this error ehen a user is trying to sign up.
I just tried to add email verification logic and this bug came up
Someone help me with this issue
In what part of your code you're facing the error?
As of now I've added router.push('/login') to redirect after a user sign up. Just done this to hide the bug
But it should be there as I want to do email verification when a user sign up
then get access to other pages
So, I put the verification logic there and tried to sign up as a new user but it showed up this error and didn't send any email for verification or anything to me other than the error along with signed up successfully message
First, I don't want this error to show up and second I want to send the email verification
I see.
I think, that in the middle of the process you'll need to use the account.get() in between
To create the user session before moving to other user actions.
Recommended threads
- Middleware
how to make middleware in nextjs appwrite with client side auth?
- Error 400: redirect_uri_mismatch
Hi team, Google OAuth was working fine with our Appwrite Cloud setup until yesterday. We did not change any configuration in Appwrite, Google Cloud, or our cod...
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...