token

package
v0.0.0-...-00b2d59 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2015 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Secret string
	ISS    string
}

Token type for jwt tokens.

func (Token) New

func (t Token) New(id string, exp time.Time) (string, error)

New creates a new jwt token.

func (Token) Valid

func (t Token) Valid(rawToken string) (bool, string)

Valid checks if a token is valid

Jump to

Keyboard shortcuts

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