Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TokenMsgLen is the length of the msg in bytes
TokenMsgLen = 8
)
Variables ¶
View Source
var ErrInvalidToken = errors.New("token verification failed")
ErrInvalidToken will be the result of a failed verify
Functions ¶
func GenerateKey ¶
GenerateKey creates a new public private key pair and returns it encoded as urlsafe base64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.