Versions in this module Expand all Collapse all v1 v1.0.1 Apr 19, 2024 Changes in this version + type Auth interface + Guard func(name string) Auth + Login func(ctx http.Context, user any) (token string, err error) + LoginUsingID func(ctx http.Context, id any) (token string, err error) + Logout func(ctx http.Context) error + Parse func(ctx http.Context, token string) (*Payload, error) + Refresh func(ctx http.Context) (token string, err error) + User func(ctx http.Context, user any) error + type Payload struct + ExpireAt time.Time + Guard string + IssuedAt time.Time + Key string