Skip to content

Commit

Permalink
fix(ui): oauth (#3298)
Browse files Browse the repository at this point in the history
Co-authored-by: Shahar Glazner <[email protected]>
  • Loading branch information
talboren and shahargl authored Feb 4, 2025
1 parent ed70495 commit 8b49d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keep-ui/app/(keep)/providers/oauth2/[providerType]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export default async function InstallFromOAuth({
cache: "no-store",
}
);
return redirect("/providers?oauth=success");
redirect("/providers?oauth=success");
} catch (error: unknown) {
const errorMessage = error instanceof Error ? error.message : String(error);
return redirect(
redirect(
`/providers?oauth=failure&reason=${encodeURIComponent(errorMessage)}`
);
}
Expand Down

0 comments on commit 8b49d93

Please sign in to comment.