Skip to content

Commit

Permalink
Fixup version
Browse files Browse the repository at this point in the history
  • Loading branch information
mbish committed Mar 18, 2024
1 parent 0174139 commit 100859a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fs from 'fs';
import path from 'path';

const pkg = JSON.parse(
fs.readFileSync(path.join(__dirname, '../package.json'), { encoding: 'utf-8' })
fs.readFileSync(path.join(__dirname, '../package.json'), { encoding: 'utf-8' }),

Check failure on line 10 in src/constants.ts

View workflow job for this annotation

GitHub Actions / Node CI - test (18.x)

Delete `,`

Check failure on line 10 in src/constants.ts

View workflow job for this annotation

GitHub Actions / Node CI - test (20.x)

Delete `,`
);

export const CLIENT_ID_LENGTH = 20;
Expand All @@ -19,7 +19,7 @@ export const JTI_LENGTH = 36;
export const JWT_EXPIRATION = 300;
export const JWT_LEEWAY = 60;

export const USER_AGENT = `duo_universal_node/${version}`;
export const USER_AGENT = `duo_universal_node/${pkg.version}`;
export const SIG_ALGORITHM = 'HS512';
export const GRANT_TYPE = 'authorization_code';
export const CLIENT_ASSERTION_TYPE = 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer';
Expand Down

0 comments on commit 100859a

Please sign in to comment.