mirror of
https://github.com/hanzoai/openid-client.git
synced 2026-09-24 17:01:10 +00:00
chore: run formatter
This commit is contained in:
@@ -79,9 +79,7 @@ for all requests made with the resulting [Configuration](../classes/Configuratio
|
||||
let server!: URL
|
||||
let clientId!: string
|
||||
let clientMetadata!:
|
||||
| Partial<client.ClientMetadata>
|
||||
| undefined
|
||||
| string
|
||||
Partial<client.ClientMetadata> | undefined | string
|
||||
let clientAuth!: client.ClientAuth | undefined
|
||||
|
||||
let config = await client.discovery(
|
||||
|
||||
@@ -92,9 +92,7 @@ for all requests made with the resulting [Configuration](../classes/Configuratio
|
||||
let server!: URL
|
||||
let clientId!: string
|
||||
let clientMetadata!:
|
||||
| Partial<client.ClientMetadata>
|
||||
| undefined
|
||||
| string
|
||||
Partial<client.ClientMetadata> | undefined | string
|
||||
let clientAuth!: client.ClientAuth | undefined
|
||||
|
||||
let config = await client.discovery(
|
||||
|
||||
+1
-3
@@ -1073,9 +1073,7 @@ export interface DiscoveryRequestOptions {
|
||||
* let server!: URL
|
||||
* let clientId!: string
|
||||
* let clientMetadata!:
|
||||
* | Partial<client.ClientMetadata>
|
||||
* | undefined
|
||||
* | string
|
||||
* Partial<client.ClientMetadata> | undefined | string
|
||||
* let clientAuth!: client.ClientAuth | undefined
|
||||
*
|
||||
* let config = await client.discovery(
|
||||
|
||||
+3
-6
@@ -53,8 +53,7 @@ export interface AuthenticateOptions extends passport.AuthenticateOptions {
|
||||
* {@link StrategyOptions.authorizationDetails}.
|
||||
*/
|
||||
authorizationDetails?:
|
||||
| client.AuthorizationDetails
|
||||
| client.AuthorizationDetails[]
|
||||
client.AuthorizationDetails | client.AuthorizationDetails[]
|
||||
|
||||
/**
|
||||
* OpenID Connect prompt. This will be used as the `prompt` authorization
|
||||
@@ -145,8 +144,7 @@ interface StrategyOptionsBase {
|
||||
* through other means.
|
||||
*/
|
||||
authorizationDetails?:
|
||||
| client.AuthorizationDetails
|
||||
| client.AuthorizationDetails[]
|
||||
client.AuthorizationDetails | client.AuthorizationDetails[]
|
||||
|
||||
/**
|
||||
* OAuth 2.0 Resource Indicator(s). This will be used as the `resource`
|
||||
@@ -198,8 +196,7 @@ function setResource(params: URLSearchParams, resource: string | string[]) {
|
||||
function setAuthorizationDetails(
|
||||
params: URLSearchParams,
|
||||
authorizationDetails:
|
||||
| client.AuthorizationDetails
|
||||
| client.AuthorizationDetails[],
|
||||
client.AuthorizationDetails | client.AuthorizationDetails[],
|
||||
) {
|
||||
if (Array.isArray(authorizationDetails)) {
|
||||
params.set('authorization_details', JSON.stringify(authorizationDetails))
|
||||
|
||||
+4
-6
@@ -14,12 +14,10 @@ export default async (
|
||||
import('./end2end-device-code.js'),
|
||||
import('./end2end.js'),
|
||||
])
|
||||
if (
|
||||
!(
|
||||
typeof navigator !== 'undefined' &&
|
||||
navigator.userAgent?.startsWith?.('Mozilla/5.0 ')
|
||||
)
|
||||
) {
|
||||
if (!(
|
||||
typeof navigator !== 'undefined' &&
|
||||
navigator.userAgent?.startsWith?.('Mozilla/5.0 ')
|
||||
)) {
|
||||
modules.push(await import('./end2end-ciba.js'))
|
||||
}
|
||||
for (const { default: module } of modules) {
|
||||
|
||||
Reference in New Issue
Block a user