diff --git a/packages/auth/src/Bootstrap/Container.ts b/packages/auth/src/Bootstrap/Container.ts index 225523255..1a0f580db 100644 --- a/packages/auth/src/Bootstrap/Container.ts +++ b/packages/auth/src/Bootstrap/Container.ts @@ -460,11 +460,7 @@ export class ContainerConfigLoader { .toConstantValue(env.get('U2F_RELYING_PARTY_NAME', true) ?? 'Standard Notes') container .bind(TYPES.U2F_RELYING_PARTY_ID) - .toConstantValue( - env.get('U2F_RELYING_PARTY_ID', true) - ? env.get('U2F_RELYING_PARTY_ID', true).split(',') - : ['standardnotes.com'], - ) + .toConstantValue(env.get('U2F_RELYING_PARTY_ID', true) ?? 'standardnotes.com') container .bind(TYPES.U2F_EXPECTED_ORIGIN) .toConstantValue( diff --git a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.spec.ts b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.spec.ts index e443c6ade..34d4cb849 100644 --- a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.spec.ts +++ b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.spec.ts @@ -16,7 +16,7 @@ describe('VerifyAuthenticatorAuthenticationResponse', () => { new VerifyAuthenticatorAuthenticationResponse( authenticatorRepository, authenticatorChallengeRepository, - ['standardnotes.com'], + 'standardnotes.com', ['localhost', 'https://app.standardnotes.com'], true, ) diff --git a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.ts b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.ts index 041827671..2720dcaee 100644 --- a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.ts +++ b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorAuthenticationResponse/VerifyAuthenticatorAuthenticationResponse.ts @@ -10,7 +10,7 @@ export class VerifyAuthenticatorAuthenticationResponse implements UseCaseInterfa constructor( private authenticatorRepository: AuthenticatorRepositoryInterface, private authenticatorChallengeRepository: AuthenticatorChallengeRepositoryInterface, - private relyingPartyId: string[], + private relyingPartyId: string, private expectedOrigin: string[], private requireUserVerification: boolean, ) {} diff --git a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.spec.ts b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.spec.ts index 51dc107db..1f20033c0 100644 --- a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.spec.ts +++ b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.spec.ts @@ -16,7 +16,7 @@ describe('VerifyAuthenticatorRegistrationResponse', () => { new VerifyAuthenticatorRegistrationResponse( authenticatorRepository, authenticatorChallengeRepository, - ['standardnotes.com'], + 'standardnotes.com', ['localhost', 'https://app.standardnotes.com'], true, ) diff --git a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.ts b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.ts index bc78041bd..5d71406e2 100644 --- a/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.ts +++ b/packages/auth/src/Domain/UseCase/VerifyAuthenticatorRegistrationResponse/VerifyAuthenticatorRegistrationResponse.ts @@ -10,7 +10,7 @@ export class VerifyAuthenticatorRegistrationResponse implements UseCaseInterface constructor( private authenticatorRepository: AuthenticatorRepositoryInterface, private authenticatorChallengeRepository: AuthenticatorChallengeRepositoryInterface, - private relyingPartyId: string[], + private relyingPartyId: string, private expectedOrigin: string[], private requireUserVerification: boolean, ) {}