This commit is contained in:
@@ -20,7 +20,7 @@ func GenerateToken(profile_id string) (string, error) {
|
||||
"name": "Thomas Peetz",
|
||||
"admin": true,
|
||||
"authorized": true,
|
||||
"profile_id": profile_id,
|
||||
"sub": profile_id,
|
||||
"exp": time.Now().Add(time.Hour * 72).Unix(),
|
||||
}
|
||||
// claims["authorized"] = true
|
||||
|
||||
Reference in New Issue
Block a user