Documentation ¶
Index ¶
- Variables
- func Create(publicClaims PublicClaims, options ...option) (string, error)
- func CreateAccessCookie(publicClaims PublicClaims, options ...option) (http.Cookie, error)
- func CreateCookie(name string, publicClaims PublicClaims, options ...option) (http.Cookie, error)
- func ForActor(id string) option
- func WithExpiration(time time.Time) option
- type Claims
- type PublicClaims
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = errors.New("parsed token is invalid")
Functions ¶
func Create ¶
func Create(publicClaims PublicClaims, options ...option) (string, error)
func CreateAccessCookie ¶
func CreateAccessCookie(publicClaims PublicClaims, options ...option) (http.Cookie, error)
func CreateCookie ¶
func CreateCookie(name string, publicClaims PublicClaims, options ...option) (http.Cookie, error)
func WithExpiration ¶
Types ¶
type PublicClaims ¶
Click to show internal directories.
Click to hide internal directories.