Skip to content

Commit

Permalink
increase token expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
ruskaof committed Apr 21, 2024
1 parent 9b0275e commit e41f2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ func ValidateToken(tokenString string) (userId int64, valid bool, err error) {
return
}

var expirationSeconds = flag.Int("expiration", 3600, "token expiration time in seconds")
var expirationSeconds = flag.Int("expiration", 3600*24*7, "token expiration time in seconds")

0 comments on commit e41f2bd

Please sign in to comment.