jwt

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package jwt handles JWT authentication/validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	VerifiedEmail string `json:"email"`
}

Claims represents the claims of a JWT.

type Verifier

type Verifier interface {
	Verify(ctx context.Context, token string) (*Claims, error)
}

Verifier is able to verify a JWT and extract its claims.

Jump to

Keyboard shortcuts

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