Documentation ¶
Overview ¶
Package auth provides authentication and authorization support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAuthError ¶
IsAuthError checks if an error of type AuthError exists.
func NewAuthError ¶
NewAuthError creates an AuthError for the provided message.
Types ¶
type Claims ¶
type Claims struct { jwt.RegisteredClaims BusinessID string `json:"business_id" validate:"required,uuid"` PersonID string `json:"person_id" validate:"uuid"` AppID string `json:"azp" validate:"required"` }
Claims represents the authorization claims transmitted via a JWT.
func Authenticate ¶
Authenticate processes the token to validate the sender's token is valid.
Click to show internal directories.
Click to hide internal directories.