auth

package
v0.0.0-...-5fc34b3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateToken

func AuthenticateToken(reqToken string, claims *c.Claims) (int, error)

func GetJwtToken

func GetJwtToken(usr c.User) (string, error)

func HashAndSalt

func HashAndSalt(pwd []byte) string

take pass and return hashed pass

func JWTKey

func JWTKey(token *jwt.Token) (interface{}, error)

func Verify

func Verify(pass string, hashedPass string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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