From 910b57f43e0454d3fc1a2067d4db88a3aa7d46d6 Mon Sep 17 00:00:00 2001 From: Tony Giorgio Date: Wed, 19 Feb 2025 20:57:35 -0600 Subject: [PATCH] Format --- src/lib/api.ts | 10 ++++++++-- src/lib/main.tsx | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 3f1d35f..0bea7c9 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -288,7 +288,10 @@ export async function changePassword(currentPassword: string, newPassword: strin ); } -export async function initiateGitHubAuth(client_id: string, inviteCode?: string): Promise { +export async function initiateGitHubAuth( + client_id: string, + inviteCode?: string +): Promise { try { return await encryptedApiCall<{ invite_code?: string; client_id: string }, GithubAuthResponse>( `${apiUrl}/auth/github`, @@ -355,7 +358,10 @@ export type GoogleAuthResponse = { csrf_token: string; }; -export async function initiateGoogleAuth(client_id: string, inviteCode?: string): Promise { +export async function initiateGoogleAuth( + client_id: string, + inviteCode?: string +): Promise { try { return await encryptedApiCall<{ invite_code?: string; client_id: string }, GoogleAuthResponse>( `${apiUrl}/auth/google`, diff --git a/src/lib/main.tsx b/src/lib/main.tsx index 11ddb06..b6e79dc 100644 --- a/src/lib/main.tsx +++ b/src/lib/main.tsx @@ -660,7 +660,7 @@ export function OpenSecretProvider({ requestNewVerificationEmail: api.requestNewVerificationCode, changePassword: api.changePassword, refreshAccessToken: api.refreshToken, - requestPasswordReset: (email: string, hashedSecret: string) => + requestPasswordReset: (email: string, hashedSecret: string) => api.requestPasswordReset(email, hashedSecret, clientId), confirmPasswordReset: ( email: string,