-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
feat: show deleted user sessions #8749
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
Math.max(allowedSessions - 1, 0), | ||
); | ||
user.deletedSessions = deletedSessionsCount; | ||
user.activeSessions = allowedSessions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tymek I'm using the field that you added to user schema
@@ -95,8 +115,9 @@ afterAll(async () => { | |||
await db.destroy(); | |||
}); | |||
|
|||
afterEach(async () => { | |||
beforeEach(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a better practice to clean data before not after since it allows debugging failed tests
About the changes
After log in we show a toast telling user that they were logged out of stale sessions
Next steps:
Important files
Discussion points