authentication

package
v0.0.0-...-190fc14 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationInterface

type AuthenticationInterface interface {
	SignUp(email, password string) error
	SignIn(email, password string) (entity.Tokens, error)
	ValidateRefreshToken(refreshToken string) (entity.User, error)
	RefreshAccessToken(entity.User) (string, error)
}

type AuthenticationService

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

func New

func (*AuthenticationService) RefreshAccessToken

func (a *AuthenticationService) RefreshAccessToken(user entity.User) (string, error)

func (*AuthenticationService) SignIn

func (a *AuthenticationService) SignIn(email, password string) (entity.Tokens, error)

func (*AuthenticationService) SignUp

func (a *AuthenticationService) SignUp(email, password string) error

func (*AuthenticationService) ValidateRefreshToken

func (a *AuthenticationService) ValidateRefreshToken(refreshToken string) (entity.User, error)

type RefreshTokenCustomClaims

type RefreshTokenCustomClaims struct {
	Foo string `json:"foo"`
	jwt.MapClaims
}

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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