jwt

package
v0.0.1-alpha5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

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

AuthService holds our auth struct

func NewAuthService

func NewAuthService(config *context.Config) *AuthService

NewAuthService instantiates a new AuthService

func (*AuthService) SignJWT

func (a *AuthService) SignJWT(customClaims *builder.CustomClaims) (string, error)

SignJWT signs a new jwt

func (*AuthService) ValidateJWT

func (a *AuthService) ValidateJWT(tokenString string, customClaims *builder.CustomClaims) (*jwt.Token, error)

ValidateJWT validates a token string

Jump to

Keyboard shortcuts

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