We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 040ca9e commit f9a8e58Copy full SHA for f9a8e58
lib/main.ts
@@ -471,6 +471,12 @@ export async function createKindeAPI(
471
audience: [`${event.context.domains.kindeDomain}/api`],
472
});
473
474
+ if (typeof token === "object") {
475
+ token = JSON.stringify(token);
476
+ token = token.replace(`"\\"`, "");
477
+ token = token.replace(`\\""`, "");
478
+ }
479
+
480
const callKindeAPI = async ({
481
method,
482
endpoint,
0 commit comments