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

Feature/82/invalidate-jwt #91

Merged
merged 2 commits into from
Dec 7, 2024
Merged

Conversation

AmirAgassi
Copy link
Member

@AmirAgassi AmirAgassi commented Dec 7, 2024

🔒 Invalidate JWT #82

🔍 What's Included

  • Added token_salt column to users table in migrations.
  • Edited JWT generation and verification to use token_salt.
  • Edited middleware and server logic to fetch and verify tokens with token_salt.

📁 Files Affected:

  • backend/.sqlc/migrations/20241219000000_add_token_salt_to_users.sql
  • backend/.sqlc/queries/users.sql
  • backend/internal/jwt/*
  • backend/internal/middleware/jwt.go
  • backend/internal/server/*

@AmirAgassi AmirAgassi requested a review from juancwu December 7, 2024 01:03
@AmirAgassi AmirAgassi self-assigned this Dec 7, 2024
@AmirAgassi AmirAgassi linked an issue Dec 7, 2024 that may be closed by this pull request
@AmirAgassi AmirAgassi changed the title Feature/82/add-token-salt-for-jwt-security Feature/82/invalidate-jwt Dec 7, 2024
@AmirAgassi AmirAgassi merged commit 8c5a785 into main Dec 7, 2024
3 checks passed
@AmirAgassi AmirAgassi deleted the feat/82/invalidate-authentication-jwt branch December 7, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[BE Feat] Add a system to invalidate authentication JWT
2 participants