@@ -346,6 +346,7 @@ pub(crate) struct LoginWithEmailOtpPayload<'a> {
346
346
pub ( crate ) options : Option < LoginEmailOtpParams > ,
347
347
}
348
348
349
+ // align json field's name with https://github.com/supabase/auth/blob/1f7de6c65f31ef0bbb80899369989b13ab5a517f/openapi.yaml#L559
349
350
#[ derive( Default , Debug , Clone , Serialize , Deserialize , PartialEq ) ]
350
351
pub struct LoginEmailOtpParams {
351
352
/// Verification token received when the user completes the captcha on the site.
@@ -355,9 +356,11 @@ pub struct LoginEmailOtpParams {
355
356
/// The redirect url embedded in the email link
356
357
pub email_redirect_to : Option < String > ,
357
358
/// If set to false, this method will not create a new user. Defaults to true.
359
+ #[ serde( rename = "create_user" ) ]
358
360
pub should_create_user : Option < bool > ,
359
361
}
360
362
363
+ // align json field's name with https://github.com/supabase/auth/blob/1f7de6c65f31ef0bbb80899369989b13ab5a517f/openapi.yaml#L559
361
364
#[ derive( Default , Debug , Clone , Serialize , Deserialize , PartialEq ) ]
362
365
pub struct LoginMobileOtpParams {
363
366
/// Verification token received when the user completes the captcha on the site.
@@ -367,6 +370,7 @@ pub struct LoginMobileOtpParams {
367
370
/// The redirect url embedded in the email link
368
371
pub channel : Option < Channel > ,
369
372
/// If set to false, this method will not create a new user. Defaults to true.
373
+ #[ serde( rename = "create_user" ) ]
370
374
pub should_create_user : Option < bool > ,
371
375
}
372
376
0 commit comments