Skip to content

Commit

Permalink
Configure slot consent (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev authored Dec 20, 2024
1 parent e0c1a01 commit a206b5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/keychain/src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Session } from "./session";
import { Failure } from "./failure";
import { Success } from "./success";
import { Pending } from "./pending";
import { Slot } from "./slot";
import { Consent, Slot } from "./slot";

export function App() {
return (
Expand All @@ -14,6 +14,7 @@ export function App() {
<Route path="authenticate" element={<Authenticate />} />
<Route path="session" element={<Session />} />
<Route path="slot" element={<Slot />} />
<Route path="slot/consent" element={<Consent />} />
<Route path="success" element={<Success />} />
<Route path="failure" element={<Failure />} />
<Route path="pending" element={<Pending />} />
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/slot/consent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function Consent() {

useEffect(() => {
if (!Controller.fromStore(import.meta.env.VITE_ORIGIN!)) {
navigate("/slot", { replace: true });
navigate("/slot/auth", { replace: true });
}
}, [navigate]);

Expand Down

0 comments on commit a206b5c

Please sign in to comment.