🐛 Bug Report: "Users.createSession()" returns invalid session secret #8569
Labels
bug
Something isn't working
product / auth
Fixes and upgrades for the Appwrite Auth / Users / Teams services.
👟 Reproduction steps
👍 Expected behavior
No error.
Get a valid user object response back.
👎 Actual Behavior
Error => "User (role: guests) missing scope (account)"
Session secret when creating one via "Users.createSession()"

Session secret when creating one via "Account.createEmailPasswordSession()"

The one from "Users.createSession()" is not properly encoded and therefore not returned as JWT.
Users.createSession()
appwrite/app/controllers/api/users.php
Line 1815 in 9301bdd
Account.createEmailPasswordSession()
appwrite/app/controllers/api/account.php
Line 808 in 9301bdd
🎲 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: