@@ -346,6 +346,7 @@ pub(crate) struct LoginWithEmailOtpPayload<'a> {
346346 pub ( crate ) options : Option < LoginEmailOtpParams > ,
347347}
348348
349+ // align json field's name with https://github.com/supabase/auth/blob/1f7de6c65f31ef0bbb80899369989b13ab5a517f/openapi.yaml#L559
349350#[ derive( Default , Debug , Clone , Serialize , Deserialize , PartialEq ) ]
350351pub struct LoginEmailOtpParams {
351352 /// Verification token received when the user completes the captcha on the site.
@@ -355,9 +356,11 @@ pub struct LoginEmailOtpParams {
355356 /// The redirect url embedded in the email link
356357 pub email_redirect_to : Option < String > ,
357358 /// If set to false, this method will not create a new user. Defaults to true.
359+ #[ serde( rename = "create_user" ) ]
358360 pub should_create_user : Option < bool > ,
359361}
360362
363+ // align json field's name with https://github.com/supabase/auth/blob/1f7de6c65f31ef0bbb80899369989b13ab5a517f/openapi.yaml#L559
361364#[ derive( Default , Debug , Clone , Serialize , Deserialize , PartialEq ) ]
362365pub struct LoginMobileOtpParams {
363366 /// Verification token received when the user completes the captcha on the site.
@@ -367,6 +370,7 @@ pub struct LoginMobileOtpParams {
367370 /// The redirect url embedded in the email link
368371 pub channel : Option < Channel > ,
369372 /// If set to false, this method will not create a new user. Defaults to true.
373+ #[ serde( rename = "create_user" ) ]
370374 pub should_create_user : Option < bool > ,
371375}
372376
0 commit comments