handler

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceHandler

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

ServiceHandler is used to handle all the jwt service functions

func (ServiceHandler) AccessAndRefreshTokens

func (serviceHandler ServiceHandler) AccessAndRefreshTokens(
	ctx context.Context,
	request *proto.JWTData,
	response *proto.AccessAndRefreshToken) error

AccessAndRefreshTokens is used to generate access and refresh tokens

func (ServiceHandler) FreshToken

func (serviceHandler ServiceHandler) FreshToken(
	ctx context.Context, request *proto.JWTData, response *proto.Token) error

FreshToken is used to generate fresh token

func (*ServiceHandler) Init

func (serviceHandler *ServiceHandler) Init()

Init is used to initialize

func (ServiceHandler) RefreshTokens

func (serviceHandler ServiceHandler) RefreshTokens(
	ctx context.Context,
	request *proto.Token,
	response *proto.AccessAndRefreshToken) error

RefreshTokens is used to make access and refresh token based on refresh token

func (ServiceHandler) ValidateToken

func (serviceHandler ServiceHandler) ValidateToken(
	ctx context.Context, request *proto.Token, response *proto.Claims) error

ValidateToken is used to validate a token

Jump to

Keyboard shortcuts

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