passwordless

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginWithEmailRequest

type LoginWithEmailRequest struct {
	oauth.ClientAuthentication
	Audience  string `json:"audience,omitempty"`
	Code      string `json:"otp,omitempty"`
	Email     string `json:"username,omitempty"`
	GrantType string `json:"grant_type,omitempty"`
	Realm     string `json:"realm,omitempty"`
	Scope     string `json:"scope,omitempty"`
}

LoginWithEmailRequest defines the request body for exchanging a code requested by `SendEmail` for a token.

type LoginWithSMSRequest

type LoginWithSMSRequest struct {
	oauth.ClientAuthentication
	Audience    string `json:"audience,omitempty"`
	Code        string `json:"otp,omitempty"`
	PhoneNumber string `json:"username,omitempty"`
	GrantType   string `json:"grant_type,omitempty"`
	Realm       string `json:"realm,omitempty"`
	Scope       string `json:"scope,omitempty"`
}

LoginWithSMSRequest defines the request body for exchanging a code requested by `SendSMS` for a token.

type SendEmailRequest

type SendEmailRequest struct {
	oauth.ClientAuthentication
	Connection string                 `json:"connection,omitempty"`
	Email      string                 `json:"email,omitempty"`
	Send       string                 `json:"send,omitempty"`
	AuthParams map[string]interface{} `json:"authParams,omitempty"`
}

SendEmailRequest defines the request body for starting a passwordless flow via email.

type SendEmailResponse

type SendEmailResponse struct {
	ID            string `json:"_id,omitempty"`
	Email         string `json:"email,omitempty"`
	EmailVerified bool   `json:"email_verified,omitempty"`
}

SendEmailResponse defines the response from the `SendEmail` request.

type SendSMSRequest

type SendSMSRequest struct {
	oauth.ClientAuthentication
	Connection  string                 `json:"connection,omitempty"`
	PhoneNumber string                 `json:"phone_number,omitempty"`
	AuthParams  map[string]interface{} `json:"authParams,omitempty"`
}

SendSMSRequest defines the request body for starting a passwordless flow via email.

type SendSMSResponse

type SendSMSResponse struct {
	ID            string `json:"_id,omitempty"`
	PhoneNumber   string `json:"phone_number,omitempty"`
	PhoneVerified bool   `json:"phone_verified,omitempty"`
}

SendSMSResponse defines the response from the `SendSMS` request.

Jump to

Keyboard shortcuts

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