-
Notifications
You must be signed in to change notification settings - Fork 41
Description
👟 Reproduction steps
Currently, logged-in users can use the login command to login again which shouldn't be the case as we have a logout command as well. It will serve no purpose otherwise...so a solution would be to check if there are any current logged in users before we can login again. I think the account get command would serve that purpose but when I run it, it raises an error saying that the appwrite project is not instantiated with init but ig that's a bit confusing since when we are logging in we are connecting to maybe the cloud api endpoint and now I want to get the details of the current logged-in user for that....it has no link with a local appwrite project....
I would love to work on this...tho I would need some more insights into the issue :)
👍 Expected behavior
Should not allow user to login again before logout...
👎 Actual Behavior
Allowing us to do the opposite
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 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?
- I have read the Code of Conduct