Skip to content

Commit d329313

Browse files
committed
Remove unnecessary field from anon login
1 parent 9f14dd8 commit d329313

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/models.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub(crate) struct SignUpWithPhoneAndPasswordPayload<'a> {
193193
pub(crate) struct LoginAnonymouslyPayload {
194194
#[serde(flatten)]
195195
#[serde(skip_serializing_if = "Option::is_none")]
196-
pub(crate) options: Option<SignUpWithPasswordOptions>,
196+
pub(crate) options: Option<LoginAnonymouslyOptions>,
197197
}
198198

199199
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
@@ -209,6 +209,14 @@ pub struct SignUpWithPasswordOptions {
209209
pub captcha_token: Option<String>,
210210
}
211211

212+
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
213+
pub struct LoginAnonymouslyOptions {
214+
/// The `data` should be a JSON object that includes user-specific info, such as their first and last name.
215+
pub data: Option<Value>,
216+
/// Verification token received when the user completes the captcha on the site.
217+
pub captcha_token: Option<String>,
218+
}
219+
212220
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
213221
pub(crate) struct RequestMagicLinkPayload<'a> {
214222
pub(crate) email: &'a str,

0 commit comments

Comments
 (0)