@@ -193,7 +193,7 @@ pub(crate) struct SignUpWithPhoneAndPasswordPayload<'a> {
193
193
pub ( crate ) struct LoginAnonymouslyPayload {
194
194
#[ serde( flatten) ]
195
195
#[ serde( skip_serializing_if = "Option::is_none" ) ]
196
- pub ( crate ) options : Option < SignUpWithPasswordOptions > ,
196
+ pub ( crate ) options : Option < LoginAnonymouslyOptions > ,
197
197
}
198
198
199
199
#[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
@@ -209,6 +209,14 @@ pub struct SignUpWithPasswordOptions {
209
209
pub captcha_token : Option < String > ,
210
210
}
211
211
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
+
212
220
#[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
213
221
pub ( crate ) struct RequestMagicLinkPayload < ' a > {
214
222
pub ( crate ) email : & ' a str ,
0 commit comments