@palmetto/users-sdk 0.0.13 → 0.0.14
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/client.d.ts +8 -8
- package/dist/client.js +6 -1
- package/dist/main.d.ts +1 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -56,18 +56,18 @@ export declare class UsersApiClient extends BaseClient<paths> {
|
|
|
56
56
|
getAuthToken({ code }: GetAuthTokenInput, opts?: ApiOptions): Promise<import("./result").ResultErr<{
|
|
57
57
|
code: "UNKNOWN_ERROR";
|
|
58
58
|
}> | import("./result").ResultOk<{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
accessToken: string;
|
|
60
|
+
idToken: string;
|
|
61
|
+
refreshToken: string;
|
|
62
|
+
expiresIn: number;
|
|
63
63
|
}>>;
|
|
64
64
|
refreshToken({ refreshToken }: RefreshTokenInput, opts?: ApiOptions): Promise<import("./result").ResultErr<{
|
|
65
65
|
code: "UNKNOWN_ERROR";
|
|
66
66
|
}> | import("./result").ResultOk<{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
accessToken: string;
|
|
68
|
+
idToken: string;
|
|
69
|
+
refreshToken: string;
|
|
70
|
+
expiresIn: number;
|
|
71
71
|
}>>;
|
|
72
72
|
private getToken;
|
|
73
73
|
}
|
package/dist/client.js
CHANGED
|
@@ -96,7 +96,12 @@ export class UsersApiClient extends BaseClient {
|
|
|
96
96
|
body: input,
|
|
97
97
|
});
|
|
98
98
|
if (data) {
|
|
99
|
-
return Ok(
|
|
99
|
+
return Ok({
|
|
100
|
+
accessToken: data.access_token,
|
|
101
|
+
idToken: data.id_token,
|
|
102
|
+
refreshToken: data.refresh_token,
|
|
103
|
+
expiresIn: data.expires_in,
|
|
104
|
+
});
|
|
100
105
|
}
|
|
101
106
|
switch (response.status) {
|
|
102
107
|
default:
|
package/dist/main.d.ts
CHANGED