@meshagent/meshagent-react-auth 0.36.0 → 0.36.2
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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.36.2]
|
|
2
|
+
- Breaking: Removed share-connect API from the TypeScript client (`connectShare` / RoomShareConnectionInfo).
|
|
3
|
+
- OAuth helpers now default requested scope to `profile` (TS auth + React auth).
|
|
4
|
+
|
|
5
|
+
## [0.36.1]
|
|
6
|
+
- Stability
|
|
7
|
+
|
|
1
8
|
## [0.36.0]
|
|
2
9
|
- Added container config mounts and agent email/heartbeat settings with typed prompt content (text/file) to TypeScript service specs.
|
|
3
10
|
- Breaking: container API key provisioning was removed from container specs.
|
|
@@ -51,7 +51,7 @@ async function buildOAuthAuthorizeUrl(params) {
|
|
|
51
51
|
await cache.saveVerifier(pair.codeVerifier);
|
|
52
52
|
const query = new URLSearchParams({
|
|
53
53
|
...(params.extraQueryParams ?? {}),
|
|
54
|
-
scope: params.scope ?? "
|
|
54
|
+
scope: params.scope ?? "profile",
|
|
55
55
|
client_id: params.oauthClientId,
|
|
56
56
|
code_challenge: pair.codeChallenge,
|
|
57
57
|
response_type: "code",
|
|
@@ -119,7 +119,7 @@ function useLoginScope(options) {
|
|
|
119
119
|
toUrl(options.serverUrl).toString(),
|
|
120
120
|
toUrl(options.callbackUrl).toString(),
|
|
121
121
|
options.oauthClientId,
|
|
122
|
-
options.scope ?? "
|
|
122
|
+
options.scope ?? "profile",
|
|
123
123
|
extraQueryParamsKey,
|
|
124
124
|
autoSignIn,
|
|
125
125
|
authSnapshot.accessToken,
|
|
@@ -47,7 +47,7 @@ export async function buildOAuthAuthorizeUrl(params) {
|
|
|
47
47
|
await cache.saveVerifier(pair.codeVerifier);
|
|
48
48
|
const query = new URLSearchParams({
|
|
49
49
|
...(params.extraQueryParams ?? {}),
|
|
50
|
-
scope: params.scope ?? "
|
|
50
|
+
scope: params.scope ?? "profile",
|
|
51
51
|
client_id: params.oauthClientId,
|
|
52
52
|
code_challenge: pair.codeChallenge,
|
|
53
53
|
response_type: "code",
|
|
@@ -115,7 +115,7 @@ export function useLoginScope(options) {
|
|
|
115
115
|
toUrl(options.serverUrl).toString(),
|
|
116
116
|
toUrl(options.callbackUrl).toString(),
|
|
117
117
|
options.oauthClientId,
|
|
118
|
-
options.scope ?? "
|
|
118
|
+
options.scope ?? "profile",
|
|
119
119
|
extraQueryParamsKey,
|
|
120
120
|
autoSignIn,
|
|
121
121
|
authSnapshot.accessToken,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshagent/meshagent-react-auth",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.2",
|
|
4
4
|
"description": "Meshagent React Auth Helpers",
|
|
5
5
|
"homepage": "https://github.com/meshagent/meshagent-react-auth",
|
|
6
6
|
"scripts": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"CHANGELOG.md"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@meshagent/meshagent": "^0.36.
|
|
30
|
-
"@meshagent/meshagent-ts-auth": "^0.36.
|
|
29
|
+
"@meshagent/meshagent": "^0.36.2",
|
|
30
|
+
"@meshagent/meshagent-ts-auth": "^0.36.2",
|
|
31
31
|
"@tanstack/react-query": "^5.95.2",
|
|
32
32
|
"@tanstack/react-query-devtools": "^5.95.2",
|
|
33
33
|
"react": "^19.1.8",
|