Documentation
¶
Index ¶
- func AddRoutes(sg *echo.Group)
- func GenerateQRHandler(c echo.Context) error
- func SigninHandler(c echo.Context) error
- func SignupHandler(c echo.Context) error
- func ToggleMFAHandler(c echo.Context) error
- func UpdatePasswordHandler(c echo.Context) error
- type Claims
- type HasuraClaims
- type SigninOptions
- type SignupOptions
- type ToggleMFAOptions
- type UpdatePasswordOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateQRHandler ¶
func SigninHandler ¶
func SignupHandler ¶
func ToggleMFAHandler ¶
func UpdatePasswordHandler ¶
Types ¶
type Claims ¶
type Claims struct {
Hasura HasuraClaims `json:"https://hasura.io/jwt/claims"`
jwt.RegisteredClaims
}
type HasuraClaims ¶
type HasuraClaims struct {
AllowedRoles []string `json:"x-hasura-allowed-roles,omitempty"`
DefaultRole string `json:"x-hasura-default-role,omitempty"`
UserID string `json:"x-hasura-user-id,omitempty"`
UserEmail string `json:"x-hasura-user-email,omitempty"`
IsAnonymous string `json:"x-hasura-user-is-anonymous,omitempty"`
}
type SigninOptions ¶
type SignupOptions ¶
type ToggleMFAOptions ¶
type ToggleMFAOptions struct {
Code string `json:"code"`
}
type UpdatePasswordOptions ¶
Click to show internal directories.
Click to hide internal directories.