Skip to content

Commit 5ca84b3

Browse files
committed
Fix model definition to match JS API
1 parent 9e50587 commit 5ca84b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: src/models.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ pub struct VerifyMobileOtpParams {
305305

306306
#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]
307307
pub struct VerifyEmailOtpParams {
308-
/// The user's phone number. pub email: String, The otp sent to the user's phone number.
308+
/// The user's email.
309+
pub email: String,
310+
/// The otp sent to the user's email.
309311
pub token: String,
310312
/// The user's verification type.
311313
#[serde(rename = "type")]
@@ -331,7 +333,11 @@ pub enum OtpType {
331333
Signup,
332334
EmailChange,
333335
Sms,
336+
Email,
334337
PhoneChange,
338+
Invite,
339+
Magiclink,
340+
Recovery,
335341
}
336342

337343
#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]

0 commit comments

Comments
 (0)