auth

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const JwtAlg = "HS256"

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT(cfg *config.Config) string

GenerateJWT generates a JWT token using the given config. Requires that ZEP_AUTH_SECRET is set in the environment.

func JWTVerifier

func JWTVerifier(cfg *config.Config) func(http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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