auth

package
v0.0.0-...-d0d622f Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashedPwd string, plainPwd []byte) bool

Compare hashed password in db with input password.

func GenerateJWT

func GenerateJWT() (string, error)

Generate JWT and return as string.

func HashAndSalt

func HashAndSalt(pwd []byte) string

Hash and Salt with bcrypt.

func ValidateToken

func ValidateToken(tokenString string) bool

Validate JWT token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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