Skip to content

Commit

Permalink
fix(clerk-sdk-node): Correctly apply body deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
igneel64 committed Jan 19, 2022
1 parent 2cacbb2 commit fefc084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-node/src/Clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class Clerk extends ClerkBackendAPI {
...(body && { body: querystring.stringify(body) }),
}) as OptionsOfJSONResponseBody;

return got(url, finalHTTPOptions);
return got(url, finalHTTPOptions).then(data => data.body);
};

super({
Expand Down

0 comments on commit fefc084

Please sign in to comment.