leaf-library-3/internal/constants/auth.go
2024-12-10 18:22:14 +08:00

21 lines
418 B
Go

package constants
type JwtTokenTypes string
const (
JwtTokenTypeAccessToken JwtTokenTypes = "access_token"
JwtTokenTypeIDToken JwtTokenTypes = "id_token"
)
func (jwtTokenType JwtTokenTypes) String() string {
return string(jwtTokenType)
}
const (
AuthHeader = "Authorization"
AuthPrefix = "Bearer"
AuthMiddlewareKey = "auth.user"
AuthAssistantShareMiddlewareKey = "auth.assistant.share"
)