jwt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenUtils

type TokenUtils interface {
	ParseJWT(t string) (string, error)
	GenerateJWT(userName string) (string, error)
}

TokenUtils interface. JWT-related utility methods.

func CreateTokenUtils

func CreateTokenUtils(logger *zap.SugaredLogger) TokenUtils

CreateTokenUtils instantiates the tokenUtils implementation.

Jump to

Keyboard shortcuts

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