fix JWT token expiry from 24 minutes to 24 hours
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
func initAuth(queries *db.Queries) (*auth.Service, *auth.Handler) {
|
||||
secret := []byte(os.Getenv("JWT_SECRET"))
|
||||
expiry := 24 * time.Minute
|
||||
expiry := 24 * time.Hour
|
||||
|
||||
if len(secret) == 0 {
|
||||
log.Fatal("JWT_SECRET not set")
|
||||
|
||||
Reference in New Issue
Block a user