jwt

package
v0.0.0-...-401e576 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	UserID  string `valid:"uuidv4, required"`
	Email   string `valid:"email"`
	Payload map[string]interface{}
	JWT     string
}

Authentication - data entity

func Auth

func Auth(ctx context.Context) (Authentication, error)

Auth - authenticates context object

Jump to

Keyboard shortcuts

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