mirror of
https://github.com/hanzoai/openid-client.git
synced 2026-09-24 17:01:10 +00:00
14 lines
449 B
Diff
14 lines
449 B
Diff
diff --git a/examples/oauth.ts b/examples/par.ts
|
|
index d87c63e..58bb51d 100644
|
|
--- a/examples/oauth.ts
|
|
+++ b/examples/par.ts
|
|
@@ -51,7 +51,7 @@ let state!: string
|
|
parameters.state = state
|
|
}
|
|
|
|
- let redirectTo = client.buildAuthorizationUrl(config, parameters)
|
|
+ let redirectTo = await client.buildAuthorizationUrlWithPAR(config, parameters)
|
|
|
|
console.log('redirecting to', redirectTo.href)
|
|
// now redirect the user to redirectTo.href
|