-
Notifications
You must be signed in to change notification settings - Fork 4.4k
🐛 Bug Report: expire
is empty from account.listSessions()
#4846
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
Comments
expire
is empty from account.listSessions()
@devcat-net, thanks for creating this issue! 🙏🏼 We changed how we handled the expiration and now calculate it at runtime like: appwrite/app/controllers/api/account.php Lines 1442 to 1454 in 8dfdef6
Looks like we forgot to add that calculation in List Sessions: appwrite/app/controllers/api/account.php Lines 1340 to 1347 in 8dfdef6
|
Hey @stnguyen90, I've implemented the suggested change, but can't figure out a way to test it locally. Any help would be much appreciated on the PR. |
You should be able to manually make the API call to test. In addition, you should add a test case to make sure we don't run into the problem again. |
@stnguyen90, I guess the assignee wasn't working. I have fixed the bug and added the assertion in the test case. Please review |
@CoderMayhem, are you still working on this or can I unassign you? |
👟 Reproduction steps
I am implementing a Vue.js application in which I am using the appwrite SDK v. 10.1.0. The appwrite version is 1.1.2. I updated both the SDK and the appwrite version together, and now I am facing the problem that when I send a
listSessions
request to the backend, I don't get a value for theexpire
field. As you can see in the screenshot, I receive data, but theexpire
field is an empty string.👍 Expected behavior
I expect an ISO-formatted Date string
👎 Actual Behavior
I receive an empty string.
🎲 Appwrite version
Version 1.1.x
💻 Operating system
Linux
🧱 Your Environment
Appwrite v. 1.1.2
Web SDK v 10.1.0
👀 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: