jwt

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleUserCookie

func HandleUserCookie(w http.ResponseWriter, r *http.Request) (*models.User, error)

HandleUserCookie attempts to refresh an expired token if the user is still valid

func WriteUserCookie

func WriteUserCookie(w http.ResponseWriter, u *models.User)

WriteUserCookie encodes a user's JWT and sets it as an httpOnly & Secure cookie

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL