@rocket.chat/desktop-api 1.2.0-rc.0 → 1.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @rocket.chat/desktop-api
|
|
2
2
|
|
|
3
|
+
## 1.3.0-rc.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ([#41056](https://github.com/RocketChat/Rocket.Chat/pull/41056)) Added a `setUserRoles` bridge method to the desktop API and pushed the logged-in user's roles to the desktop app. This lets the desktop client restrict supportedVersions messages (such as version-expiration warnings) to specific roles like admins, instead of showing them to every user. The push is reactive to role changes; desktop builds without the bridge method fall back to their own role lookup.
|
|
8
|
+
|
|
9
|
+
- ([#40721](https://github.com/RocketChat/Rocket.Chat/pull/40721)) ## Phishing-Resistant Multi-Factor Authentication
|
|
10
|
+
|
|
11
|
+
Introduces a more secure and reliable server-side OAuth authentication flow.
|
|
12
|
+
|
|
13
|
+
### What’s New
|
|
14
|
+
|
|
15
|
+
- **Improved OAuth login security**
|
|
16
|
+
OAuth authentication now happens fully on the server, reducing the risk of token theft, phishing attacks, and client-side credential interception.
|
|
17
|
+
- **Built-in CSRF, state validation, and PKCE protection**
|
|
18
|
+
OAuth logins now include stronger protection against CSRF attacks, request tampering, and authorization code interception through secure state validation and PKCE support.
|
|
19
|
+
- **Improved two-step verification with OAuth logins**
|
|
20
|
+
Users with email or TOTP two-factor authentication enabled will now be asked to complete 2FA even when signing in with providers like Google, GitHub, GitLab, and others.
|
|
21
|
+
- **Improved mobile & desktop app login**
|
|
22
|
+
Mobile and desktop apps now support a smoother and more secure deep-link OAuth login flow.
|
|
23
|
+
|
|
24
|
+
## 1.2.0
|
|
25
|
+
|
|
3
26
|
## 1.2.0-rc.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface IRocketChatDesktop {
|
|
|
32
32
|
setSidebarCustomTheme: (customTheme: string) => void;
|
|
33
33
|
setTitle: (title: string) => void;
|
|
34
34
|
setUserLoggedIn: (userLoggedIn: boolean) => void;
|
|
35
|
+
setUserRoles: (roles: string[]) => void;
|
|
35
36
|
setUserPresenceDetection: (options: {
|
|
36
37
|
isAutoAwayEnabled: boolean;
|
|
37
38
|
idleThreshold: number | null;
|
|
@@ -58,5 +59,6 @@ export interface IRocketChatDesktop {
|
|
|
58
59
|
setUserToken: (token: string, userId: string) => void;
|
|
59
60
|
openDocumentViewer: (url: string, format: string, options: any) => void;
|
|
60
61
|
reloadServer: () => void;
|
|
62
|
+
getE2ePdfPreviewSizeLimit: () => number;
|
|
61
63
|
openInBrowser: (url: string) => void;
|
|
62
64
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface IRocketChatDesktop {
|
|
|
38
38
|
setSidebarCustomTheme: (customTheme: string) => void;
|
|
39
39
|
setTitle: (title: string) => void;
|
|
40
40
|
setUserLoggedIn: (userLoggedIn: boolean) => void;
|
|
41
|
+
setUserRoles: (roles: string[]) => void;
|
|
41
42
|
setUserPresenceDetection: (options: {
|
|
42
43
|
isAutoAwayEnabled: boolean;
|
|
43
44
|
idleThreshold: number | null;
|
|
@@ -63,5 +64,6 @@ export interface IRocketChatDesktop {
|
|
|
63
64
|
setUserToken: (token: string, userId: string) => void;
|
|
64
65
|
openDocumentViewer: (url: string, format: string, options: any) => void;
|
|
65
66
|
reloadServer: () => void;
|
|
67
|
+
getE2ePdfPreviewSizeLimit: () => number;
|
|
66
68
|
openInBrowser: (url: string) => void;
|
|
67
69
|
}
|