jwt

package
v0.0.0-...-ed990bf Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleUserCookie

func HandleUserCookie(e env.Env, w http.ResponseWriter, r *http.Request) (*db.User, error)

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

func WriteUserCookie

func WriteUserCookie(w http.ResponseWriter, u *db.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