chore: update api v1 user context name

This commit is contained in:
Steven
2023-08-02 07:44:04 +08:00
parent 59a75c89eb
commit c26834e9cd
7 changed files with 20 additions and 21 deletions

View File

@ -5,9 +5,6 @@ import (
)
const (
// The key name used to store user id in the context
// user id is extracted from the jwt token subject field.
UserIDContextKey = "user-id"
// issuer is the issuer of the jwt token.
Issuer = "slash"
// Signing key section. For now, this is only used for signing, not for verifying since we only