Documentation ¶
Index ¶
- func LoginWithEmailAndPasswordHandler(getUserByEmail func(email string) (AuthUserEmail, error)) func(c *fiber.Ctx) error
- func LoginWithPhoneOTPHandler(getUserByPhone func(phone string) (AuthUserPhone, error)) func(c *fiber.Ctx) error
- func VerifyPhoneOTPHandler(getUserByPhone func(phone string) (AuthUserPhone, error)) func(c *fiber.Ctx) error
- type AuthUserEmail
- type AuthUserPhone
- type JWTClaimsProvider
- type LoginWithEmailAndPasswordRequest
- type LoginWithPhoneOTPRequest
- type ResponseHTTP
- type VerifyPhoneOTPRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginWithEmailAndPasswordHandler ¶
func LoginWithEmailAndPasswordHandler(getUserByEmail func(email string) (AuthUserEmail, error)) func(c *fiber.Ctx) error
func LoginWithPhoneOTPHandler ¶
func LoginWithPhoneOTPHandler(getUserByPhone func(phone string) (AuthUserPhone, error)) func(c *fiber.Ctx) error
func VerifyPhoneOTPHandler ¶
func VerifyPhoneOTPHandler(getUserByPhone func(phone string) (AuthUserPhone, error)) func(c *fiber.Ctx) error
Types ¶
type AuthUserEmail ¶
type AuthUserEmail interface { GetEmail() string GetPassword() string GetID() string JWTClaimsProvider }
type AuthUserPhone ¶
type AuthUserPhone interface { GetPhone() string GetPassword() string GetID() string JWTClaimsProvider }
type JWTClaimsProvider ¶
type JWTClaimsProvider interface {
AdditionalClaims() map[string]interface{}
}
type LoginWithPhoneOTPRequest ¶
type LoginWithPhoneOTPRequest struct {
Phone string `json:"phone"`
}
type ResponseHTTP ¶
type VerifyPhoneOTPRequest ¶
Click to show internal directories.
Click to hide internal directories.