Documentation ¶
Index ¶
- func JWTVerifier(jwtB64 string, body string) (*mojobody.TokenResponse, error)
- type Mojoauth
- func (mojo Mojoauth) GetJwks() (*httprutils.Response, error)
- func (mojo Mojoauth) PingStatus(queries interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) ResendEmailOTP(body interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) ResendPhoneOTP(body interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) SigninWithEmailOTP(body interface{}, queries ...interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) SigninWithMagicLink(body interface{}, queries ...interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) SigninWithPhoneOTP(body interface{}, queries ...interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) VerifyEmailOTP(body interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) VerifyPhoneOTP(body interface{}) (*httprutils.Response, error)
- func (mojo Mojoauth) VerifyToken(token string) (*mojobody.TokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTVerifier ¶ added in v0.2.0
func JWTVerifier(jwtB64 string, body string) (*mojobody.TokenResponse, error)
Types ¶
type Mojoauth ¶
type Mojoauth struct {
Client *go_mojoauth.Mojoauth
}
func (Mojoauth) GetJwks ¶ added in v0.2.0
func (mojo Mojoauth) GetJwks() (*httprutils.Response, error)
func (mojo Mojoauth) VerifyToken(body interface{}, queries ...interface{}) (*httprutils.Response, error) {
request, err := mojo.Client.NewPostReqWithToken("/token/verify", body) res, err := httprutils.TimeoutClient.Send(*request) return res, err }
func (Mojoauth) PingStatus ¶
func (mojo Mojoauth) PingStatus(queries interface{}) (*httprutils.Response, error)
func (Mojoauth) ResendEmailOTP ¶ added in v0.2.1
func (mojo Mojoauth) ResendEmailOTP(body interface{}) (*httprutils.Response, error)
func (Mojoauth) ResendPhoneOTP ¶ added in v0.2.1
func (mojo Mojoauth) ResendPhoneOTP(body interface{}) (*httprutils.Response, error)
func (Mojoauth) SigninWithEmailOTP ¶
func (mojo Mojoauth) SigninWithEmailOTP(body interface{}, queries ...interface{}) (*httprutils.Response, error)
func (Mojoauth) SigninWithMagicLink ¶
func (mojo Mojoauth) SigninWithMagicLink(body interface{}, queries ...interface{}) (*httprutils.Response, error)
func (Mojoauth) SigninWithPhoneOTP ¶ added in v0.2.1
func (mojo Mojoauth) SigninWithPhoneOTP(body interface{}, queries ...interface{}) (*httprutils.Response, error)
func (Mojoauth) VerifyEmailOTP ¶
func (mojo Mojoauth) VerifyEmailOTP(body interface{}) (*httprutils.Response, error)
func (Mojoauth) VerifyPhoneOTP ¶ added in v0.2.1
func (mojo Mojoauth) VerifyPhoneOTP(body interface{}) (*httprutils.Response, error)
func (Mojoauth) VerifyToken ¶
func (mojo Mojoauth) VerifyToken(token string) (*mojobody.TokenResponse, error)
Click to show internal directories.
Click to hide internal directories.