jwgo

package module
v0.0.0-...-391e729 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README

jwgo - Fast jose toolkit for static payloads

** This library is under development and not usable yet **.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidType    = errors.New("invalid type for claim")
	ErrTokenMalformed = errors.New("token is malformed")
	ErrKeyMalformed   = errors.New("key is malformed")
)

Functions

This section is empty.

Types

type ClaimStrings

type ClaimStrings []string

ClaimStrings is a slice of strings. It can be serialized and decoded from either an string array or a single string, which will become the single element of the resulting slice. This is necessary for the `aud` claim.

func (*ClaimStrings) UnmarshalJSON

func (s *ClaimStrings) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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