Skip to content

Commit

Permalink
fix(ui): Fix OAuth links not working if they were not the first.
Browse files Browse the repository at this point in the history
If you setup a Plaid link and then attempt to add an additional link
that requires OAuth; it will fail because the OAuth return route was not
configured in the routes once a link exists.

This just adds the OAuth return route to to the route config when there
are links setup. This would also fix if you initially started with a
manual link and then tried to add an OAuth institution.

Resolves #488
  • Loading branch information
elliotcourant committed Feb 20, 2023
1 parent 5a8bd13 commit 799589a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/AuthenticatedApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const AuthenticatedApp = (): JSX.Element => {
<div className="relative flex flex-col flex-1 w-0 min-w-0 mb-0 lg:ml-64">
<NavigationBar onToggleSidebar={ toggleSidebar } />
<Routes>
<Route path="/plaid/oauth-return" element={ <OAuthRedirect /> } />
<Route path="/register" element={ <Navigate replace to="/" /> } />
<Route path="/login" element={ <Navigate replace to="/" /> } />
<Route path="/logout" element={ <LogoutPage /> } />
Expand Down

0 comments on commit 799589a

Please sign in to comment.