auth

package
v0.0.0-...-e331df4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAccessToken

func GenerateAccessToken(subject, signingKey string, ttl time.Duration) (string, error)

Generating a new jwt access token.

func Parse

func Parse(accessToken, signingKey string) (string, error)

Parsing jwt access token.

Types

type JWT

type JWT interface {
	GenerateAccessToken(subject, signingKey string, ttl time.Duration) (string, error)
	Parse(accessToken, signingKey string) (string, error)
}

JWT manager interface.

Jump to

Keyboard shortcuts

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