jwtcore

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 4 Imported by: 0

README

JWT core

go get github.com/a-novel-kit/jwt-core

GitHub Actions Workflow Status codecov

GitHub repo file or directory count GitHub code size in bytes

Coverage graph

Low-level methods to build JSON Web Algorithms.

Credits

Heavily built on the GO-JOSE codebase: https://github.com/go-jose/go-jose

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assemble

func Assemble(tokens ...string) string

Assemble takes multiple JSON Web strings and merges them into a single one.

func Decode

func Decode(token string, payload interface{}) error

Decode takes a JSON Web string and returns a payload.

func Disassemble

func Disassemble(token string) []string

Disassemble takes a JSON Web string and returns multiple JSON Web strings.

func Encode

func Encode(payload interface{}) (string, error)

Encode takes a payload and returns a JSON Web string.

Types

This section is empty.

Directories

Path Synopsis
internal
jwe
enc
jwk
gen

Jump to

Keyboard shortcuts

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