tokens

package
v0.0.0-...-7b393fd Latest Latest
Warning

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

Go to latest
Published: May 16, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmationToken

type ConfirmationToken struct {
	Key string
}

func ParseConfirmationToken

func ParseConfirmationToken(jwtKey []byte, tokenStr string) (token ConfirmationToken, err error)

func (ConfirmationToken) ToString

func (service ConfirmationToken) ToString(jwtKey []byte) (string, error)

type ResetToken

type ResetToken struct {
	Key string
}

func ParseResetToken

func ParseResetToken(jwtKey []byte, tokenStr string) (token ResetToken, err error)

func (ResetToken) ToString

func (service ResetToken) ToString(jwtKey []byte) (string, error)

type SessionToken

type SessionToken struct {
	UserId    string    `json:"UserId"`
	CreatedAt time.Time `json:"createdAt"`
}

func ParseSessionToken

func ParseSessionToken(jwtKey []byte, tokenStr string) (token SessionToken, err error)

func (SessionToken) ToString

func (service SessionToken) ToString(jwtKey []byte) (string, error)

Jump to

Keyboard shortcuts

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