@pylonsync/react 0.4.0 → 0.4.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/dist/index.d.ts +1 -0
- package/package.json +3 -3
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export declare function createSession(userId: string): Promise<{
|
|
|
83
83
|
}>;
|
|
84
84
|
export declare function getAuthContext(token?: string): Promise<{
|
|
85
85
|
user_id: string | null;
|
|
86
|
+
avatar_url?: string | null;
|
|
86
87
|
}>;
|
|
87
88
|
/**
|
|
88
89
|
* Exchange a current session token for a new one with a fresh 30-day expiry.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.4.
|
|
6
|
+
"version": "0.4.2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"prepack": "bun run build"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pylonsync/sdk": "0.4.
|
|
18
|
-
"@pylonsync/sync": "0.4.
|
|
17
|
+
"@pylonsync/sdk": "0.4.2",
|
|
18
|
+
"@pylonsync/sync": "0.4.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=19.0.0"
|
package/src/index.ts
CHANGED
|
@@ -360,8 +360,8 @@ export async function createSession(
|
|
|
360
360
|
|
|
361
361
|
export async function getAuthContext(
|
|
362
362
|
token?: string
|
|
363
|
-
): Promise<{ user_id: string | null }> {
|
|
364
|
-
return pylonFetch<{ user_id: string | null }>(
|
|
363
|
+
): Promise<{ user_id: string | null; avatar_url?: string | null }> {
|
|
364
|
+
return pylonFetch<{ user_id: string | null; avatar_url?: string | null }>(
|
|
365
365
|
{ baseUrl: getBaseUrl(), token },
|
|
366
366
|
"/api/auth/me",
|
|
367
367
|
);
|