Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyRonning committed Feb 20, 2025
1 parent e72eaa5 commit 910b57f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ export async function changePassword(currentPassword: string, newPassword: strin
);
}

export async function initiateGitHubAuth(client_id: string, inviteCode?: string): Promise<GithubAuthResponse> {
export async function initiateGitHubAuth(
client_id: string,
inviteCode?: string
): Promise<GithubAuthResponse> {
try {
return await encryptedApiCall<{ invite_code?: string; client_id: string }, GithubAuthResponse>(
`${apiUrl}/auth/github`,
Expand Down Expand Up @@ -355,7 +358,10 @@ export type GoogleAuthResponse = {
csrf_token: string;
};

export async function initiateGoogleAuth(client_id: string, inviteCode?: string): Promise<GoogleAuthResponse> {
export async function initiateGoogleAuth(
client_id: string,
inviteCode?: string
): Promise<GoogleAuthResponse> {
try {
return await encryptedApiCall<{ invite_code?: string; client_id: string }, GoogleAuthResponse>(
`${apiUrl}/auth/google`,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 910b57f

Please sign in to comment.