Skip to content

Commit c804da6

Browse files
fix: stop importing named export from package.json (#1962)
2 parents 2ac2d31 + 9d0bf58 commit c804da6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/auth-client.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NextResponse, type NextRequest } from "next/server";
22
import * as jose from "jose";
33
import * as oauth from "oauth4webapi";
44

5-
import { version } from "../../package.json";
5+
import packageJson from "../../package.json";
66
import {
77
AccessTokenError,
88
AccessTokenErrorCode,
@@ -144,6 +144,7 @@ export class AuthClient {
144144
const timeout = options.httpTimeout ?? 5000;
145145
if (enableTelemetry) {
146146
const name = "nextjs-auth0";
147+
const version = packageJson.version;
147148

148149
headers.set("User-Agent", `${name}/${version}`);
149150
headers.set(

0 commit comments

Comments
 (0)