auth

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(key *rsa.PrivateKey, expiresIn time.Duration) (string, error)

func ReadPrivateKey

func ReadPrivateKey(filename string) (*rsa.PrivateKey, error)

func ReadPublicKey

func ReadPublicKey(filename string) (*rsa.PublicKey, error)

func ValidateToken

func ValidateToken(key *rsa.PublicKey, tokenString string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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