Skip to content

Commit

Permalink
Merge pull request #20 from Ulas-Scan/development
Browse files Browse the repository at this point in the history
feat: update token expiresAt to 2 minutes
  • Loading branch information
iyoubee authored Jun 18, 2024
2 parents 55ddce0 + 20cb7d2 commit aba6747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (j *jwtService) GenerateToken(userId string, role string) string {
userId,
role,
jwt.RegisteredClaims{
ExpiresAt: jwt.NewNumericDate(time.Now().Add(time.Minute * 120)),
ExpiresAt: jwt.NewNumericDate(time.Now().Add(time.Minute * 2)),
Issuer: j.issuer,
IssuedAt: jwt.NewNumericDate(time.Now()),
},
Expand Down

0 comments on commit aba6747

Please sign in to comment.