Skip to content

Commit 5a5a7c9

Browse files
committed
fix: handle max_age=0 in buildAuthorizationUrlWithJAR()
1 parent 555bc88 commit 5a5a7c9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
},
8787
"dependencies": {
8888
"jose": "^6.0.10",
89-
"oauth4webapi": "^3.3.2"
89+
"oauth4webapi": "^3.4.0"
9090
},
9191
"devDependencies": {
9292
"@koa/cors": "^5.0.0",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3131,6 +3131,7 @@ export function buildAuthorizationUrl(
31313131
checkConfig(config)
31323132

31333133
const { as, c, tlsOnly, hybrid, jarm } = int(config)
3134+
// @ts-expect-error
31343135
const authorizationEndpoint = oauth.resolveEndpoint(
31353136
as,
31363137
'authorization_endpoint',
@@ -3422,6 +3423,7 @@ export function buildEndSessionUrl(
34223423
checkConfig(config)
34233424

34243425
const { as, c, tlsOnly } = int(config)
3426+
// @ts-expect-error
34253427
const endSessionEndpoint = oauth.resolveEndpoint(
34263428
as,
34273429
'end_session_endpoint',

0 commit comments

Comments
 (0)