Skip to content

Commit

Permalink
chore: fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 25, 2024
1 parent b8b122b commit 1a4d516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/keychain/src/pages/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ export default function CreateRemoteSession() {
throw new Error("Session not found");
}

if (!queries.callback_uri) {
throw new Error("Callback URI is missing");
if (!queries.callback_uri || !queries.redirect_uri) {
throw new Error("Callback or redirect URI is missing");
}

onCallback();
},
[queries.callback_uri, controller, onCallback],
[queries.callback_uri, queries.redirect_uri, controller, onCallback],
);

// Once we have a connected controller initialized, check if a session already exists.
Expand Down

0 comments on commit 1a4d516

Please sign in to comment.