auth

package
v0.0.0-...-45d5393 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractToken

func ExtractToken(r *http.Request) string

func ExtractTokenID

func ExtractTokenID(r *http.Request) (uint64, error)

func Pretty

func Pretty(data interface{})

func TokenValid

func TokenValid(r *http.Request) error

Types

type Token

type Token struct {
	Token string `json:"token"`
}

func CreateToken

func CreateToken(account_id uint64) (Token, error)

Jump to

Keyboard shortcuts

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