diff --git a/src/auth/auth-api-request.ts b/src/auth/auth-api-request.ts index f469a8cd46..7f36461fc4 100644 --- a/src/auth/auth-api-request.ts +++ b/src/auth/auth-api-request.ts @@ -2071,51 +2071,51 @@ const CREATE_TENANT = new ApiSettings('/tenants', 'POST') } }); -/** Instantiates the getPasskeyConfig endpoint settings. */ +/** Instantiates the GET_PASSKEY_CONFIG endpoint settings. */ const GET_PASSKEY_CONFIG = new ApiSettings('/passkeyConfig', 'GET') .setResponseValidator((response: any) => { - // Response should always contain at least the config name. + // Validate the response for GET_PASSKEY_CONFIG. if (!validator.isNonEmptyString(response.name)) { throw new FirebaseAuthError( AuthClientErrorCode.INTERNAL_ERROR, - 'INTERNAL ASSERT FAILED: Unable to get project config', + 'INTERNAL ASSERT FAILED: Unable to get passkey config', ); } }); -/** Instantiates the getPasskeyConfig endpoint settings. */ +/** Instantiates the GET_TENANT_PASSKEY_CONFIG endpoint settings. */ const GET_TENANT_PASSKEY_CONFIG = new ApiSettings('/tenants/{tenantId}/passkeyConfig', 'GET') .setResponseValidator((response: any) => { - // Response should always contain at least the config name. + // Validate the response for GET_TENANT_PASSKEY_CONFIG. if (!validator.isNonEmptyString(response.name)) { throw new FirebaseAuthError( AuthClientErrorCode.INTERNAL_ERROR, - 'INTERNAL ASSERT FAILED: Unable to get project config', + 'INTERNAL ASSERT FAILED: Unable to get tenant passkey config', ); } }); -/** Instantiates the getPasskeyConfig endpoint settings. */ +/** Instantiates the UPDATE_PASSKEY_CONFIG endpoint settings. */ const UPDATE_PASSKEY_CONFIG = new ApiSettings('/passkeyConfig?updateMask={updateMask}', 'PATCH') .setResponseValidator((response: any) => { - // Response should always contain at least the config name. + // Validate the response for UPDATE_PASSKEY_CONFIG. if (!validator.isNonEmptyString(response.name)) { throw new FirebaseAuthError( AuthClientErrorCode.INTERNAL_ERROR, - 'INTERNAL ASSERT FAILED: Unable to get project config', + 'INTERNAL ASSERT FAILED: Unable to update passkey config', ); } }); -/** Instantiates the getPasskeyConfig endpoint settings. */ +/** Instantiates the UPDATE_TENANT_PASSKEY_CONFIG endpoint settings. */ const UPDATE_TENANT_PASSKEY_CONFIG = new ApiSettings( '/tenant/{tenantId}/passkeyConfig?updateMask={updateMask}', 'PATCH') .setResponseValidator((response: any) => { - // Response should always contain at least the config name. + // Validate the response for UPDATE_TENANT_PASSKEY_CONFIG. if (!validator.isNonEmptyString(response.name)) { throw new FirebaseAuthError( AuthClientErrorCode.INTERNAL_ERROR, - 'INTERNAL ASSERT FAILED: Unable to get project config', + 'INTERNAL ASSERT FAILED: Unable to update tenant passkey config', ); } });