leaf-library-3/internal/constants/auth.go

21 lines
418 B
Go
Raw Normal View History

2024-12-06 15:38:22 +00:00
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"
)