jwt

package
v0.3.71 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: BSD-3-Clause Imports: 2 Imported by: 1

README

JWT

This project is a fork of original https://github.com/dgrijalva/jwt-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(method commons.SigningMethod) *elements.Token

Create a new Token. Takes a signing method

func NewWithClaims

func NewWithClaims(method commons.SigningMethod, claims elements.Claims) *elements.Token

func Parse

func Parse(tokenString string, keyFunc elements.Keyfunc) (*elements.Token, error)

Parse, validate, and return a token. keyFunc will receive the parsed token and should return the key for validating. If everything is kosher, err will be nil

func ParseWithClaims

func ParseWithClaims(tokenString string, claims elements.Claims, keyFunc elements.Keyfunc) (*elements.Token, error)

Types

This section is empty.

Directories

Path Synopsis
_test

Jump to

Keyboard shortcuts

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