Documentation ¶
Index ¶
- type AuthenticationInterface
- type AuthenticationService
- func (a *AuthenticationService) RefreshAccessToken(user entity.User) (string, error)
- func (a *AuthenticationService) SignIn(email, password string) (entity.Tokens, error)
- func (a *AuthenticationService) SignUp(email, password string) error
- func (a *AuthenticationService) ValidateRefreshToken(refreshToken string) (entity.User, error)
- type RefreshTokenCustomClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationInterface ¶
type AuthenticationService ¶
type AuthenticationService struct {
// contains filtered or unexported fields
}
func New ¶
func New(dbService database.DatabaseInterface, logger *log.Logger) *AuthenticationService
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)
Click to show internal directories.
Click to hide internal directories.