Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AuthorizationKey is the key for the authorization header and gRPC metadata AuthorizationKey = "Authorization" // RefreshTokenCookieName is the name of the refresh token cookie RefreshTokenCookieName = "X-Refresh-Token" // AccessTokenCookieName is the name of the access token cookie AccessTokenCookieName = "X-Access-Token" )
Variables ¶
View Source
var ( ErrInvalidAuthorization = errors.New("invalid authorization HTTP header or gRPC metadata") ErrMissingAuthorization = errors.New("missing authorization HTTP header or gRPC metadata") )
View Source
var ( // AuthHeaders are the headers used for authentication AuthHeaders = []string{ AuthorizationKey, RefreshTokenCookieName, AccessTokenCookieName, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.