Documentation ¶
Index ¶
- func Auth(_ http.ResponseWriter, r *http.Request)
- func EmptyCookie() *http.Cookie
- func IsAuth(r *http.Request) (handle string, err error)
- func TokenFromRequestCookie(r *http.Request) (token *jwt.Token, status int, err error)
- func UserHandleFromRequestCookie(r *http.Request) (handle string, status int, err error)
- type Claims
- type SignedToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyCookie ¶
func TokenFromRequestCookie ¶
Types ¶
type SignedToken ¶
type SignedToken string
func NewSignedJWTTokenWithClaimsForUser ¶
func NewSignedJWTTokenWithClaimsForUser(handle string) (SignedToken, error)
func (SignedToken) ParseToken ¶
func (st SignedToken) ParseToken() (*jwt.Token, error)
func (SignedToken) String ¶
func (st SignedToken) String() string
func (SignedToken) WrapInCookie ¶
func (st SignedToken) WrapInCookie() *http.Cookie
Click to show internal directories.
Click to hide internal directories.