auth

package
v0.0.0-...-bd503fb Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

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

CreateToken Creates a JSON Web Token.

func ExtractTokenUserID

func ExtractTokenUserID(r *http.Request) (uuid.UUID, error)

ExtractTokenUserID will extract the users id stored within the token

func TokenValid

func TokenValid(r *http.Request) error

TokenValid takes a http request, checks for a token and validates it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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