authhandler

package
v0.0.0-...-c42784e Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	Router chi.Router

	*deliveryhttp.BaseHandler
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(baseHandler *deliveryhttp.BaseHandler, authSrv AuthSrv) *AuthHandler

type AuthSrv

type AuthSrv interface {
	Login(ctx context.Context, email, password string, identifyData entities.UserIdentifyData) (entities.Tokens, error)
	RefreshToken(ctx context.Context, refreshToken string, identifyData entities.UserIdentifyData) (entities.Tokens, error)
}

Jump to

Keyboard shortcuts

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