Documentation ¶
Index ¶
- Variables
- func AddSocialAccountHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
- func Init(i, a string, secret []byte)
- func OTPVerifyHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
- func ParseToken(ctx *gin.Context, claims jwt.Claims) error
- func RefreshHandler(c *gin.Context)
- func RegisterHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
- func RegisterPasskeyHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
- func SignInHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
- func UserHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
- type Claims
- type GinAuth
- type Who
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTokenNotInit = errors.New("token not initialized") ErrInvalidToken = errors.New("invalid token") )
Functions ¶
func AddSocialAccountHandler ¶
func AddSocialAccountHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
func OTPVerifyHandler ¶
func OTPVerifyHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
func ParseToken ¶
func RefreshHandler ¶
func RegisterHandler ¶
func RegisterHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
func RegisterPasskeyHandler ¶
func RegisterPasskeyHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
func SignInHandler ¶
func SignInHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
func UserHandler ¶ added in v1.0.1
func UserHandler(endpoint endpoint.Endpoint) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.