Documentation ¶
Index ¶
- func Encode(value string) string
- type Auth
- type AuthImpl
- func (a *AuthImpl) Logout(provider *providers.Provider, userID uint, token string) error
- func (a *AuthImpl) SavePhone(provider *providers.Provider, userXid, phone, code string) error
- func (a *AuthImpl) SendCodeByEmail(provider *providers.Provider, email string) error
- func (a *AuthImpl) SendCodeByPhone(provider *providers.Provider, userXid, phone string) error
- func (a *AuthImpl) SignInWithCode(provider *providers.Provider, email, code string) (string, error)
- func (a *AuthImpl) SignInWithPassword(provider *providers.Provider, email, password string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth interface { SendCodeByEmail(provider *providers.Provider, email string) error SendCodeByPhone(provider *providers.Provider, userXid, phone string) error SignInWithCode(provider *providers.Provider, email, code string) (string, error) SignInWithPassword(provider *providers.Provider, email, password string) (string, error) SavePhone(provider *providers.Provider, userXid, phone, code string) error Logout(provider *providers.Provider, userID uint, token string) error }
type AuthImpl ¶
type AuthImpl struct {
// contains filtered or unexported fields
}
func (*AuthImpl) SendCodeByEmail ¶
func (*AuthImpl) SendCodeByPhone ¶
func (*AuthImpl) SignInWithCode ¶
Click to show internal directories.
Click to hide internal directories.