Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Dec 31, 2024
1 parent 3247011 commit b38f284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/createJWT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ async function createJWT(doc: any) {
.setExpirationTime('6h')
.setSubject(doc.email)
.sign(rsaPrivateKey);
// const token_endpoint_access_token = Buffer.from(randomBytes(16)).toString('base64url');
const token_endpoint_access_token = randomBytes(16).toString('base64url');
const token_endpoint_access_token = Buffer.from(randomBytes(16)).toString('base64url');
// const token_endpoint_access_token = randomBytes(16).toString('base64url');
const gnap = await nano.use("gnap");
objectPath.set(doc, 'token_endpoint_access_token', token_endpoint_access_token);
objectPath.set(doc, 'access_token.value', jwt);
Expand Down

0 comments on commit b38f284

Please sign in to comment.