token_encoder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthableEncoder

type AuthableEncoder interface {
	Encode(user *storage.User) (string, error)
}

type TokenEncoder

type TokenEncoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(key string) *TokenEncoder

func (*TokenEncoder) Encode

func (e *TokenEncoder) Encode(user *storage.User) (string, error)

Encode a claim into a JWT

Jump to

Keyboard shortcuts

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