File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export interface VRChatOptions extends Omit<NonNullable<Parameters<typeof create
6666 keyv ?: Keyv < unknown > | KeyvStoreAdapter | Map < unknown , unknown > ;
6767}
6868
69- export const TwoFactorMethods = [ "totp" , "otp" ] as const ;
69+ export const TwoFactorMethods = [ "totp" , "otp" , "emailOtp" ] as const ;
7070export type TwoFactorMethods = ( typeof TwoFactorMethods ) [ number ] ;
7171
7272export interface LoginCredentials {
@@ -372,7 +372,7 @@ export class VRChat extends VRChatInternal {
372372
373373 const factors = await Promise . all ( [
374374 twoFactorMethods . includes ( "totp" ) ? this . verify2Fa . bind ( this ) : undefined ,
375- twoFactorMethods . includes ( "otp " ) ? this . verify2FaEmailCode . bind ( this ) : undefined ,
375+ twoFactorMethods . includes ( "emailOtp " ) ? this . verify2FaEmailCode . bind ( this ) : undefined ,
376376 twoFactorMethods . includes ( "otp" ) ? this . verifyRecoveryCode . bind ( this ) : undefined
377377 ] . filter ( Boolean ) . map ( ( function_ ) => function_ ?.( {
378378 ...options ,
You can’t perform that action at this time.
0 commit comments