authentication

package
v0.0.0-...-14137fd Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT(user interface{}) (string, error)

TODO: are tokens validated against their expiry date?

func HashPassword

func HashPassword(password string) ([]uint8, error)

func LoginUser

func LoginUser(username string, password string) (interface{}, error)

func RegisterUser

func RegisterUser(username string, password string) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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