Skip to content

Commit 4cab693

Browse files
committed
Update option struct for anonymous login
1 parent d329313 commit 4cab693

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/client.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ use crate::{
2525
error::Error::{self, AuthError},
2626
models::{
2727
AuthClient, AuthServerHealth, AuthServerSettings, IdTokenCredentials, InviteParams,
28-
LoginAnonymouslyPayload, LoginEmailOtpParams, LoginWithEmailAndPasswordPayload,
29-
LoginWithEmailOtpPayload, LoginWithOAuthOptions, LoginWithPhoneAndPasswordPayload,
30-
LoginWithSSO, LogoutScope, OAuthResponse, OTPResponse, Provider, RefreshSessionPayload,
31-
RequestMagicLinkPayload, ResendParams, ResetPasswordForEmailPayload, SendSMSOtpPayload,
32-
Session, SignUpWithEmailAndPasswordPayload, SignUpWithPasswordOptions,
28+
LoginAnonymouslyOptions, LoginAnonymouslyPayload, LoginEmailOtpParams,
29+
LoginWithEmailAndPasswordPayload, LoginWithEmailOtpPayload, LoginWithOAuthOptions,
30+
LoginWithPhoneAndPasswordPayload, LoginWithSSO, LogoutScope, OAuthResponse, OTPResponse,
31+
Provider, RefreshSessionPayload, RequestMagicLinkPayload, ResendParams,
32+
ResetPasswordForEmailPayload, SendSMSOtpPayload, Session,
33+
SignUpWithEmailAndPasswordPayload, SignUpWithPasswordOptions,
3334
SignUpWithPhoneAndPasswordPayload, UpdatedUser, User, VerifyOtpParams, AUTH_V1,
3435
},
3536
};
@@ -278,7 +279,7 @@ impl AuthClient {
278279
/// ```
279280
pub async fn login_anonymously(
280281
&self,
281-
options: Option<SignUpWithPasswordOptions>,
282+
options: Option<LoginAnonymouslyOptions>,
282283
) -> Result<Session, Error> {
283284
let payload = LoginAnonymouslyPayload { options };
284285

0 commit comments

Comments
 (0)