authentication

package
v0.0.0-...-d66a43f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationConfiguration

type AuthenticationConfiguration func(*AuthenticationService) error

func WithAuthMemoryRepository

func WithAuthMemoryRepository() AuthenticationConfiguration

func WithAuthRepository

func WithAuthRepository(config config.Posgres) AuthenticationConfiguration

func WithJWTService

func WithJWTService(redis config.Redis) AuthenticationConfiguration

type AuthenticationService

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

func (*AuthenticationService) LogIn

func (as *AuthenticationService) LogIn(username, pass string) (*entity.TokenDetails, error)

func (*AuthenticationService) Register

func (as *AuthenticationService) Register(username, pass string) (*entity.TokenDetails, error)

Jump to

Keyboard shortcuts

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