Documentation
¶
Overview ¶
Package auth holds reduced public authentication contracts.
Index ¶
Constants ¶
View Source
const ( ClaimSubject = "sub" ClaimEmail = "email" ClaimScope = "scope" )
Variables ¶
View Source
var ( ErrInvalidToken = errors.New("invalid token") ErrExpiredToken = errors.New("expired token") )
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is the reduced stdlib-only authentication contract.
type Claims ¶
type Claims map[string]interface{}
Claims carries normalized auth claims without tying the public surface to a specific vendor payload type.
Click to show internal directories.
Click to hide internal directories.