Documentation ¶
Index ¶
- func AddRoutes(sg *echo.Group)
- func GenerateQRHandler(c echo.Context) error
- func SetService(svc Service)
- func SigninHandler(c echo.Context) error
- func Signup(ctx context.ServiceContext, client *clients.GQLClient, ...) error
- func SignupHandler(c echo.Context) error
- func ToggleMFAHandler(c echo.Context) error
- func UpdatePassword(ctx context.ServiceContext, client *clients.HTTPClient, ...) error
- func UpdatePasswordHandler(c echo.Context) error
- type DefaultService
- func (*DefaultService) DecryptKeysFromSession(ctx context.ServiceContext, client *clients.GQLClient, ...) (*keyCommons.Payload, error)
- func (*DefaultService) GenerateTOTPQR(ctx context.ServiceContext, client *clients.NhostClient) (*commons.GenerateQRResponse, error)
- func (*DefaultService) SigninWithMFA(ctx context.ServiceContext, client *clients.NhostClient, ...) (*commons.SigninResponse, error)
- func (*DefaultService) SigninWithPassword(ctx context.ServiceContext, client *clients.NhostClient, ...) (*commons.SigninResponse, error)
- func (*DefaultService) ToggleMFA(ctx context.ServiceContext, client *clients.NhostClient, ...) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateQRHandler ¶
func GenerateQRHandler(c echo.Context) error
func SetService ¶
func SetService(svc Service)
func SigninHandler ¶
func SigninHandler(c echo.Context) error
func Signup ¶
func Signup(ctx context.ServiceContext, client *clients.GQLClient, options *commons.SignupOptions) error
func SignupHandler ¶
func SignupHandler(c echo.Context) error
func ToggleMFAHandler ¶
func ToggleMFAHandler(c echo.Context) error
func UpdatePassword ¶
func UpdatePassword(ctx context.ServiceContext, client *clients.HTTPClient, options *commons.UpdatePasswordOptions) error
func UpdatePasswordHandler ¶
func UpdatePasswordHandler(c echo.Context) error
Types ¶
type DefaultService ¶
type DefaultService struct{}
func (*DefaultService) DecryptKeysFromSession ¶
func (*DefaultService) DecryptKeysFromSession(ctx context.ServiceContext, client *clients.GQLClient, options *commons.DecryptKeysFromSessionOptions) (*keyCommons.Payload, error)
func (*DefaultService) GenerateTOTPQR ¶
func (*DefaultService) GenerateTOTPQR(ctx context.ServiceContext, client *clients.NhostClient) (*commons.GenerateQRResponse, error)
func (*DefaultService) SigninWithMFA ¶
func (*DefaultService) SigninWithMFA(ctx context.ServiceContext, client *clients.NhostClient, options *commons.SigninWithMFAOptions) (*commons.SigninResponse, error)
func (*DefaultService) SigninWithPassword ¶
func (*DefaultService) SigninWithPassword(ctx context.ServiceContext, client *clients.NhostClient, options *commons.SigninWithPasswordOptions) (*commons.SigninResponse, error)
func (*DefaultService) ToggleMFA ¶
func (*DefaultService) ToggleMFA(ctx context.ServiceContext, client *clients.NhostClient, options *commons.ToggleMFAOptions) error
Remember: Passing a nil value to the "ActiveMFAType" option will deactivate MFA.
type Service ¶
type Service interface { ToggleMFA(context.ServiceContext, *clients.NhostClient, *commons.ToggleMFAOptions) error GenerateTOTPQR(context.ServiceContext, *clients.NhostClient) (*commons.GenerateQRResponse, error) SigninWithMFA(context.ServiceContext, *clients.NhostClient, *commons.SigninWithMFAOptions) (*commons.SigninResponse, error) SigninWithPassword(context.ServiceContext, *clients.NhostClient, *commons.SigninWithPasswordOptions) (*commons.SigninResponse, error) DecryptKeysFromSession(context.ServiceContext, *clients.GQLClient, *commons.DecryptKeysFromSessionOptions) (*keyCommons.Payload, error) }
func GetService ¶
func GetService() Service
Click to show internal directories.
Click to hide internal directories.