api

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL