-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dependencies: upgrade JWT version to v5 due to CVE-2024-51744
- Loading branch information
1 parent
7c0f5a7
commit a557071
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package candishared | ||
|
||
import "github.com/golang-jwt/jwt" | ||
import "github.com/golang-jwt/jwt/v5" | ||
|
||
// TokenClaim for token claim data | ||
type TokenClaim struct { | ||
jwt.StandardClaims | ||
Role string `json:"role"` | ||
Additional any `json:"additional"` | ||
jwt.RegisteredClaims | ||
Role string `json:"role"` | ||
Additional any `json:"additional"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters