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

Updated behavior of the refresh token in the database after logout #688

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

eugenvoronov
Copy link
Contributor

@eugenvoronov eugenvoronov commented Jul 14, 2023

Description

After the logout or sign-in the token will not be deleted, status will be changed to EXPIRED.

Summary of changes

  • Add statuses to migration
  • Add statuses to entity
  • Add new logic
  • Updated unit tests

How test the changes

POST /auth/signup - Create new auth token with ACTIVE status.
POST /auth/signin - Update previous auth token and set EXPIRED status. Create new auth token with ACTIVE status.
POST /auth/logout - Update all previous auth tokens with ACTIVE status and set EXPIRED status.

yarn test

Related issues

[Job Launcher] - Change the behavior of the refresh token in the database after logout#666

@vercel
Copy link

vercel bot commented Jul 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
escrow-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am
faucet-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am
fortune-exchange-oracle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am
fortune-exchange-oracle-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am
fortune-job-launcher-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am
fortune-job-launcher-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am
fortune-recording-oracle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am
fortune-reputation-oracle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 7:15am

@vercel vercel bot temporarily deployed to Preview – fortune-reputation-oracle July 14, 2023 13:17 Inactive
@eugenvoronov eugenvoronov requested review from portuu3 and removed request for Dzeranov July 14, 2023 13:17
@vercel vercel bot temporarily deployed to Preview – fortune-exchange-oracle-server July 14, 2023 13:17 Inactive
@eugenvoronov eugenvoronov self-assigned this Jul 14, 2023
@vercel vercel bot temporarily deployed to Preview – fortune-recording-oracle July 14, 2023 13:17 Inactive
portuu3
portuu3 previously approved these changes Jul 15, 2023
@vercel vercel bot temporarily deployed to Preview – fortune-reputation-oracle July 18, 2023 07:11 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-exchange-oracle-server July 18, 2023 07:11 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-job-launcher-client July 18, 2023 07:12 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-exchange-oracle July 18, 2023 07:14 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-job-launcher-server July 18, 2023 07:15 Inactive
@vercel vercel bot temporarily deployed to Preview – fortune-recording-oracle July 18, 2023 07:15 Inactive
@eugenvoronov eugenvoronov merged commit ab27d77 into develop Jul 18, 2023
6 checks passed
@eugenvoronov eugenvoronov deleted the feat/refresh-token-logout branch July 18, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Job Launcher] - Change the behavior of the refresh token in the database after logout
2 participants