Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anagstef committed Dec 11, 2024
1 parent fc66be5 commit 29cfab3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/clerk-js/src/core/fapiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ export function createFapiClient(clerkInstance: Clerk): FapiClient {

try {
if (beforeRequestCallbacksResult) {
let maxTries = isBrowserOnline() ? 4 : 11;
maxTries = options?.fetchMaxTries ?? maxTries;
const maxTries = options?.fetchMaxTries ?? (isBrowserOnline() ? 4 : 11);
response =
// retry only on GET requests for safety
overwrittenRequestMethod === 'GET'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ export class OrganizationSettings extends BaseResource implements OrganizationSe
enrollment_modes: this.domains.enrollmentModes,
default_role: this.domains.defaultRole,
},
} as any as OrganizationSettingsJSON;
} as unknown as OrganizationSettingsJSON;
}
}
2 changes: 1 addition & 1 deletion packages/clerk-js/src/core/resources/UserSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class UserSettings extends BaseResource implements UserSettingsResource {
sign_up: this.signUp,
password_settings: this.passwordSettings,
passkey_settings: this.passkeySettings,
} as any as UserSettingsJSON;
} as unknown as UserSettingsJSON;
}

private getEnabledFirstFactorIdentifiers(attributes: Attributes): Array<keyof UserSettingsResource['attributes']> {
Expand Down
2 changes: 1 addition & 1 deletion packages/expo/src/cache/dummy-data/client-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ export const DUMMY_CLERK_CLIENT_RESOURCE = {
cookie_expires_at: null,
created_at: new Date().getTime(),
updated_at: new Date().getTime(),
} as any as ClientJSON;
} as unknown as ClientJSON;
2 changes: 1 addition & 1 deletion packages/expo/src/cache/dummy-data/environment-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,4 @@ export const DUMMY_CLERK_ENVIRONMENT_RESOURCE = {
domains: { enabled: false, enrollment_modes: [], default_role: null },
},
maintenance_mode: false,
} as any as EnvironmentJSON;
} as unknown as EnvironmentJSON;

0 comments on commit 29cfab3

Please sign in to comment.