Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Dec 13, 2024
1 parent 19ff7de commit 9eeacb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/support/kuzzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,13 @@ export class KuzzleSDK {
{ expiresIn: "2h", refresh: false } as any
);

console.log(`Impersonating user ${userKuid}...`, apiKey);

this.sdk.jwt = apiKey._source.token;

await callback();
} finally {
console.log("Restoring previous token...");
this.sdk.jwt = currentToken;

if (apiKey?._id) {
Expand Down

0 comments on commit 9eeacb1

Please sign in to comment.