🐛 Bug Report: createEmailPasswordSession
returning a 401 Unauthorized if a user is already logged in
#8203
Labels
bug
Something isn't working
createEmailPasswordSession
returning a 401 Unauthorized if a user is already logged in
#8203
👟 Reproduction steps
When I log in with a user that is already logged in, it throws a 401.
👍 Expected behavior
Look, I get the idea behind this, but a 401 means unauthorized. That is an error. If the user is already logged in and you recognize the session and someone asks for login, just do anything with a successful message that indicates the email/password was accepted as successful (since that's what I asked) and then reuse the session that exists, or generate a new one every time.
👎 Actual Behavior
It throws an unauthorized error like something was wrong.
🎲 Appwrite version
Version 1.5.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: