generator

package
v0.0.0-...-fd8d5be Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeFunc = time.Now

TimeFunc returns current time. for testing, this function is overridable.

Functions

func NewSecret

func NewSecret() string

NewSecret generates a new secret for TOTP Secret.

func NewToken

func NewToken(privKey *ecdsa.PrivateKey, userID string) (string, error)

NewToken returns a new signed JSON Web Token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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