Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: createEmailPasswordSession returning a 401 Unauthorized if a user is already logged in #8203

Open
2 tasks done
ZachHandley opened this issue May 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ZachHandley
Copy link

👟 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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@ZachHandley ZachHandley added the bug Something isn't working label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant