Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: pragatimodi <[email protected]>
  • Loading branch information
Xiaoshouzi-gh and pragatimodi committed Apr 12, 2023
commit 199c56be7b6fd8deb6e9cbfc6306c7a87441853c
4 changes: 1 addition & 3 deletions src/auth/project-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export interface UpdateProjectConfigRequest {

/**
* Response received when getting or updating the project config.
* Currently only includes the reCAPTCHA and SMS Region config.
*/
export interface ProjectConfigServerResponse {
smsRegionConfig?: SmsRegionConfig;
Expand All @@ -60,7 +59,6 @@ export interface ProjectConfigServerResponse {

/**
* Request to update the project config.
* Currently only includes the reCAPTCHA and SMS Region config.
*/
export interface ProjectConfigClientRequest {
smsRegionConfig?: SmsRegionConfig;
Expand Down Expand Up @@ -145,7 +143,7 @@ export class ProjectConfig {
* Build the corresponding server request for a UpdateProjectConfigRequest object.
* @param configOptions - The properties to convert to a server request.
* @returns The equivalent server request.
*
*
* @internal
*/
public static buildServerRequest(configOptions: UpdateProjectConfigRequest): ProjectConfigClientRequest {
Expand Down
28 changes: 24 additions & 4 deletions test/integration/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,12 @@ describe('admin.auth', () => {
multiFactorConfig: mfaConfig,
recaptchaConfig: {
emailPasswordEnforcementState: 'AUDIT',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
useAccountDefender: true,
},
};
Expand Down Expand Up @@ -1263,7 +1268,12 @@ describe('admin.auth', () => {
multiFactorConfig: mfaConfig,
recaptchaConfig: {
emailPasswordEnforcementState: 'AUDIT',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
useAccountDefender: true,
},
};
Expand All @@ -1276,7 +1286,12 @@ describe('admin.auth', () => {
multiFactorConfig: mfaConfig,
recaptchaConfig: {
emailPasswordEnforcementState: 'OFF',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
},
};
const expectedProjectConfigSmsEnabledTotpDisabled: any = {
Expand All @@ -1293,7 +1308,12 @@ describe('admin.auth', () => {
},
recaptchaConfig: {
emailPasswordEnforcementState: 'OFF',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
},
};

Expand Down