auth

package
v0.0.0-...-691959d Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(userID uuid.UUID) (string, error)

CreateToken creates a token

func ExtractJWTToken

func ExtractJWTToken(r *http.Request) (*jwt.Token, error)

ExtractJWTToken extracts and returns a jwt token from request

func ExtractUserID

func ExtractUserID(token *jwt.Token) (uuid.UUID, error)

ExtractUserID extract the user from token in request

func ValidateToken

func ValidateToken(token *jwt.Token) error

ValidateToken validates the token in request

Types

This section is empty.

Jump to

Keyboard shortcuts

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