Documentation ¶
Index ¶
- Constants
- type Attributes
- type Client
- type Email
- type EmailString
- type MagicLinksAuthenticateParams
- type MagicLinksAuthenticateResponse
- type MagicLinksEmailInviteParams
- type MagicLinksEmailInviteResponse
- type MagicLinksEmailLoginOrCreateParams
- type MagicLinksEmailLoginOrCreateResponse
- type MagicLinksEmailRevokeInviteParams
- type MagicLinksEmailRevokeInviteResponse
- type MagicLinksEmailSendParams
- type MagicLinksEmailSendResponse
- type Name
- type OTPsAuthenticateParams
- type OTPsAuthenticateResponse
- type OTPsSMSLoginOrCreateParams
- type OTPsSMSLoginOrCreateResponse
- type OTPsSMSSendParams
- type OTPsSMSSendResponse
- type OTPsWhatsAppLoginOrCreateParams
- type OTPsWhatsAppLoginOrCreateResponse
- type OTPsWhatsAppSendParams
- type OTPsWhatsAppSendResponse
- type Options
- type PendingUsers
- type PhoneNumber
- type PhoneNumberString
- type Session
- type SessionsAuthenticateParams
- type SessionsAuthenticateResponse
- type SessionsGetParams
- type SessionsGetResponse
- type SessionsRevokeParams
- type SessionsRevokeResponse
- type UsersCreateParams
- type UsersCreateResponse
- type UsersDeleteEmailResponse
- type UsersDeletePhoneNumberResponse
- type UsersDeleteResponse
- type UsersGetPendingParams
- type UsersGetPendingResponse
- type UsersGetResponse
- type UsersUpdateParams
- type UsersUpdateResponse
Constants ¶
View Source
const ( EnvTest = config.EnvTest EnvLive = config.EnvLive )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct { // The ip address of the user. IPAddress string `json:"ip_address,omitempty"` // The user agent of the user. UserAgent string `json:"user_agent,omitempty"` }
* Structure for the custom type Attributes
type EmailString ¶
type EmailString struct {
Email string `json:"email,omitempty"`
}
type MagicLinksAuthenticateParams ¶
type MagicLinksAuthenticateParams struct { Token string `json:"token,omitempty"` Options Options `json:"options,omitempty"` Attributes Attributes `json:"attributes,omitempty"` SessionToken string `json:"session_token,omitempty"` SessionDurationMinutes int32 `json:"session_duration_minutes,omitempty"` }
type MagicLinksAuthenticateResponse ¶
type MagicLinksAuthenticateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` MethodID string `json:"method_id,omitempty"` SessionToken string `json:"session_token,omitempty"` Session Session `json:"session,omitempty"` }
type MagicLinksEmailInviteParams ¶
type MagicLinksEmailInviteParams struct { Email string `json:"email"` InviteMagicLinkURL string `json:"invite_magic_link_url"` InviteExpirationMinutes int32 `json:"invite_expiration_minutes,omitempty"` Name Name `json:"name,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type MagicLinksEmailLoginOrCreateParams ¶
type MagicLinksEmailLoginOrCreateParams struct { Email string `json:"email"` LoginMagicLinkURL string `json:"login_magic_link_url"` SignupMagicLinkURL string `json:"signup_magic_link_url"` LoginExpirationMinutes int32 `json:"login_expiration_minutes,omitempty"` SignupExpirationMinutes int32 `json:"signup_expiration_minutes,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type MagicLinksEmailRevokeInviteParams ¶
type MagicLinksEmailRevokeInviteParams struct {
Email string `json:"email"`
}
type MagicLinksEmailSendParams ¶
type MagicLinksEmailSendParams struct { Email string `json:"email"` LoginMagicLinkURL string `json:"login_magic_link_url"` SignupMagicLinkURL string `json:"signup_magic_link_url"` LoginExpirationMinutes int32 `json:"login_expiration_minutes,omitempty"` SignupExpirationMinutes int32 `json:"signup_expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
MAGIC LINK - EMAIL
type OTPsAuthenticateParams ¶
type OTPsAuthenticateParams struct { MethodID string `json:"method_id"` Code string `json:"code"` Options Options `json:"options,omitempty"` Attributes Attributes `json:"attributes,omitempty"` SessionToken string `json:"session_token,omitempty"` SessionDurationMinutes int32 `json:"session_duration_minutes,omitempty"` }
type OTPsAuthenticateResponse ¶
type OTPsAuthenticateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` MethodID string `json:"method_id,omitempty"` SessionToken string `json:"session_token,omitempty"` Session Session `json:"session,omitempty"` }
type OTPsSMSLoginOrCreateParams ¶
type OTPsSMSLoginOrCreateParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` }
type OTPsSMSSendParams ¶
type OTPsSMSSendParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
OTP - SMS
type OTPsSMSSendResponse ¶
type OTPsWhatsAppLoginOrCreateParams ¶ added in v3.1.0
type OTPsWhatsAppLoginOrCreateParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` }
type OTPsWhatsAppLoginOrCreateResponse ¶ added in v3.1.0
type OTPsWhatsAppSendParams ¶ added in v3.1.0
type OTPsWhatsAppSendParams struct { PhoneNumber string `json:"phone_number"` ExpirationMinutes int32 `json:"expiration_minutes,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
OTP - WhatsApp
type OTPsWhatsAppSendResponse ¶ added in v3.1.0
type Options ¶
type Options struct { // Require that the ip address the magic link was requested from // matches the ip address it's clicked from. IPMatchRequired bool `json:"ip_match_required,omitempty"` // Require that the user agent the magic link was requested from // matches the user agent it's clicked from. UserAgentMatchRequired bool `json:"user_agent_match_required,omitempty"` }
* Structure for the custom type Options
type PendingUsers ¶
type PhoneNumber ¶
type PhoneNumberString ¶
type PhoneNumberString struct {
PhoneNumber string `json:"phone_number,omitempty"`
}
type Session ¶ added in v3.2.0
type Session struct { SessionID string `json:"session_id,omitempty"` UserID string `json:"user_id,omitempty"` StartedAt string `json:"started_at,omitempty"` LastAccessedAt string `json:"last_accessed_at,omitempty"` ExpiresAt string `json:"expires_at,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
* Structure for the custom type Session
type SessionsAuthenticateParams ¶ added in v3.2.0
type SessionsAuthenticateResponse ¶ added in v3.2.0
type SessionsGetParams ¶ added in v3.2.0
type SessionsGetParams struct {
UserID string `json:"user_id"`
}
type SessionsGetResponse ¶ added in v3.2.0
type SessionsRevokeParams ¶ added in v3.2.0
type SessionsRevokeResponse ¶ added in v3.2.0
type SessionsRevokeResponse struct {
RequestID string `json:"request_id,omitempty"`
}
type UsersCreateParams ¶
type UsersCreateParams struct { Email string `json:"email,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` Name Name `json:"name,omitempty"` CreateUserAsPending bool `json:"create_user_as_pending,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type UsersCreateResponse ¶
type UsersDeleteResponse ¶
type UsersGetPendingParams ¶
type UsersGetPendingResponse ¶
type UsersGetPendingResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` Users []PendingUsers `json:"users,omitempty"` HasMore bool `json:"has_more,omitempty"` StartingAfterID string `json:"starting_after_id,omitempty"` Total int `json:"total,omitempty"` }
type UsersGetResponse ¶
type UsersGetResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` Name Name `json:"name,omitempty"` Emails []Email `json:"emails,omitempty"` PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` Status string `json:"status,omitempty"` }
type UsersUpdateParams ¶
type UsersUpdateParams struct { Name Name `json:"name,omitempty"` Emails []EmailString `json:"emails,omitempty"` PhoneNumbers []PhoneNumberString `json:"phone_numbers,omitempty"` Attributes Attributes `json:"attributes,omitempty"` }
type UsersUpdateResponse ¶
type UsersUpdateResponse struct { RequestID string `json:"request_id,omitempty"` StatusCode int `json:"status_code,omitempty"` UserID string `json:"user_id,omitempty"` Emails []Email `json:"emails,omitempty"` PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` }
Click to show internal directories.
Click to hide internal directories.