@palmetto/users-sdk 0.0.4 → 0.0.5
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 +2 -2
- package/dist/client.js +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class UsersApiClient {
|
|
|
25
25
|
private logger;
|
|
26
26
|
constructor(opts: CreateClientOptions);
|
|
27
27
|
setAuthToken(authToken: string): void;
|
|
28
|
-
me(opts?: ApiOptions): Promise<import("./result").ResultOk<
|
|
28
|
+
me(opts?: ApiOptions): Promise<import("./result").ResultOk<{
|
|
29
29
|
auth0Id: string;
|
|
30
30
|
email: string;
|
|
31
31
|
grants: {
|
|
@@ -42,7 +42,7 @@ export declare class UsersApiClient {
|
|
|
42
42
|
createdAt: string;
|
|
43
43
|
updatedAt?: string;
|
|
44
44
|
};
|
|
45
|
-
}
|
|
45
|
+
}> | import("./result").ResultErr<{
|
|
46
46
|
code: "NOT_AUTHENTICATED";
|
|
47
47
|
}> | import("./result").ResultErr<{
|
|
48
48
|
message: string;
|
package/dist/client.js
CHANGED
|
@@ -26,7 +26,7 @@ class UsersApiClient {
|
|
|
26
26
|
async me(opts) {
|
|
27
27
|
try {
|
|
28
28
|
const response = await this.api.me(undefined, this.generateRequestInit(opts));
|
|
29
|
-
return (0, result_1.Ok)(response);
|
|
29
|
+
return (0, result_1.Ok)(response.data);
|
|
30
30
|
}
|
|
31
31
|
catch (err) {
|
|
32
32
|
if (err instanceof openapi_typescript_fetch_1.ApiError) {
|