Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/desktop-api-open-in-browser.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/desktop-api': minor
---

Add optional `openInBrowser(url)` method to `IRocketChatDesktop`. Desktop clients can expose this to let the server frontend request that a URL be opened in the user's native browser instead of inside the Electron webview — used by flows that must leave the app, such as phishing-resistant MFA redirects to external identity providers.
1 change: 1 addition & 0 deletions packages/desktop-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ export interface IRocketChatDesktop {
clearOutlookCredentials: () => void;
setUserToken: (token: string, userId: string) => void;
openDocumentViewer: (url: string, format: string, options: any) => void;
openInBrowser?: (url: string) => void;
reloadServer: () => void;
}
Loading