auth

package
v0.0.0-...-0791769 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func GetToken

func GetToken(username string) (string, error)

GetToken returns the JWT,

func HashPassword

func HashPassword(password string) (string, error)

func VerifyToken

func VerifyToken(tokenString string) (jwt.Claims, error)

VerifiyToken checks that the token is a valid one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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