Documentation ¶
Index ¶
- Constants
- func GetAuthFromClaims(c echo.Context) (a web.Auth, err error)
- func NewLinkShareJWTAuthtoken(share *models.LinkSharing) (token string, err error)
- func NewUserAuthTokenResponse(u *user.User, c echo.Context, long bool) error
- func NewUserJWTAuthtoken(u *user.User, long bool) (token string, err error)
- type Token
Constants ¶
View Source
const ( AuthTypeUnknown int = iota AuthTypeUser )
These are all valid auth types
Variables ¶
This section is empty.
Functions ¶
func GetAuthFromClaims ¶
GetAuthFromClaims returns a web.Auth object from jwt claims
func NewLinkShareJWTAuthtoken ¶
func NewLinkShareJWTAuthtoken(share *models.LinkSharing) (token string, err error)
NewLinkShareJWTAuthtoken creates a new jwt token from a link share
func NewUserAuthTokenResponse ¶
NewUserAuthTokenResponse creates a new user auth token response from a user object.
Types ¶
Click to show internal directories.
Click to hide internal directories.