Documentation ¶
Index ¶
- type Authentication
- func (t *Authentication) Authenticate(email string, password string, entity EmailPasswordProviderEntity) (accessToken string, refreshToken string, err error)
- func (t *Authentication) RefreshToken(refreshToken string) (newAccessToken string, newRefreshToken string, err error)
- func (t *Authentication) VerifyAccessToken(accessToken string, entity orm.Entity) error
- type EmailPasswordProviderEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func (*Authentication) Authenticate ¶
func (t *Authentication) Authenticate(email string, password string, entity EmailPasswordProviderEntity) (accessToken string, refreshToken string, err error)
func (*Authentication) RefreshToken ¶
func (t *Authentication) RefreshToken(refreshToken string) (newAccessToken string, newRefreshToken string, err error)
func (*Authentication) VerifyAccessToken ¶
func (t *Authentication) VerifyAccessToken(accessToken string, entity orm.Entity) error
Click to show internal directories.
Click to hide internal directories.