Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
document redirect callback
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Oct 10, 2023
1 parent 526d214 commit 26ee0b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SnapKeyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,7 @@ export class SnapKeyring extends EventEmitter {
return response.result;
}

// In the future, this should be handled by the UI. For now, we just log
// the redirect information for debugging purposes.
// If the snap answers asynchronously, we will inform the user with a redirect
if (response.redirect?.message || response.redirect?.url) {
const { message = '', url = '' } = response.redirect;
await this.#callbacks.redirectUser(snapId, url, message, method);
Expand Down

0 comments on commit 26ee0b5

Please sign in to comment.