Skip to content

Commit 45863db

Browse files
committed
make examples work with updated spec
vrchatapi/specification@87f75bd changed requires_two_factor_auth to no longer be optional
1 parent d65df92 commit 45863db

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

examples/cookies_store.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ async fn main() {
2525
) => {
2626
if requires_auth
2727
.requires_two_factor_auth
28-
.unwrap_or_default()
2928
.contains(&::vrchatapi::models::TwoFactorAuthType::EmailOtp)
3029
{
3130
let code = read_user_input("Please enter your Email 2fa code: ");

examples/example.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ async fn main() {
1515
) => {
1616
if requires_auth
1717
.requires_two_factor_auth
18-
.unwrap_or_default()
1918
.contains(&::vrchatapi::models::TwoFactorAuthType::EmailOtp)
2019
{
2120
let code = read_user_input("Please enter your Email 2fa code: ");

0 commit comments

Comments
 (0)