AuthClientOptions | @auth0/nextjs-auth0 - v4.0.1
Description: Documentation for @auth0/nextjs-auth0

# Interface AuthClientOptions

interface AuthClientOptions {
allowInsecureRequests?: boolean;
appBaseUrl: string;
authorizationParameters?: AuthorizationParameters;
beforeSessionSaved?: BeforeSessionSavedHook;
clientAssertionSigningAlg?: string;
clientAssertionSigningKey?: string | CryptoKey;
clientId: string;
clientSecret?: string;
domain: string;
enableTelemetry?: boolean;
fetch?: {
(input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
(input: string | URL | Request, init?: RequestInit): Promise<Response>;
};
httpTimeout?: number;
jwksCache?: JWKSCacheInput;
onCallback?: OnCallbackHook;
pushedAuthorizationRequests?: boolean;
routes?: Partial<
Pick<Routes, "login" | "callback" | "logout" | "backChannelLogout">,
>;
secret: string;
sessionStore: AbstractSessionStore;
signInReturnToPath?: string;
transactionStore: TransactionStore;
}

- Defined in src/server/auth-client.ts:118

#####
Index

### Properties

allowInsecureRequests?
appBaseUrl
authorizationParameters?
beforeSessionSaved?
clientAssertionSigningAlg?
clientAssertionSigningKey?
clientId
clientSecret?
domain
enableTelemetry?
fetch?
httpTimeout?
jwksCache?
onCallback?
pushedAuthorizationRequests?
routes?
secret
sessionStore
signInReturnToPath?
transactionStore

##
Properties

### `Optional`allowInsecureRequests

allowInsecureRequests?: boolean

- Defined in src/server/auth-client.ts:142

### appBaseUrl

appBaseUrl: string

- Defined in src/server/auth-client.ts:131

### `Optional`authorizationParameters

authorizationParameters?: AuthorizationParameters

- Defined in src/server/auth-client.ts:127

### `Optional`beforeSessionSaved

beforeSessionSaved?: BeforeSessionSavedHook

- Defined in src/server/auth-client.ts:134

### `Optional`clientAssertionSigningAlg

clientAssertionSigningAlg?: string

- Defined in src/server/auth-client.ts:126

### `Optional`clientAssertionSigningKey

clientAssertionSigningKey?: string | CryptoKey

- Defined in src/server/auth-client.ts:125

### clientId

clientId: string

- Defined in src/server/auth-client.ts:123

### `Optional`clientSecret

clientSecret?: string

- Defined in src/server/auth-client.ts:124

### domain

domain: string

- Defined in src/server/auth-client.ts:122

### `Optional`enableTelemetry

enableTelemetry?: boolean

- Defined in src/server/auth-client.ts:144

### `Optional`fetch

fetch?: {
(input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
(input: string | URL | Request, init?: RequestInit): Promise<Response>;
}

#### Type declaration

- - (input: URL | RequestInfo, init?: RequestInit): Promise<Response>

  - MDN Reference

    #### Parameters

    - input: URL | RequestInfo
    - `Optional`init: RequestInit

    #### Returns Promise<Response>

  - (input: string | URL | Request, init?: RequestInit): Promise<Response>

  - MDN Reference

    #### Parameters

    - input: string | URL | Request
    - `Optional`init: RequestInit

    #### Returns Promise<Response>

- Defined in src/server/auth-client.ts:140

### `Optional`httpTimeout

httpTimeout?: number

- Defined in src/server/auth-client.ts:143

### `Optional`jwksCache

jwksCache?: JWKSCacheInput

- Defined in src/server/auth-client.ts:141

### `Optional`onCallback

onCallback?: OnCallbackHook

- Defined in src/server/auth-client.ts:135

### `Optional`pushedAuthorizationRequests

pushedAuthorizationRequests?: boolean

- Defined in src/server/auth-client.ts:128

### `Optional`routes

routes?: Partial<
Pick<Routes, "login" | "callback" | "logout" | "backChannelLogout">,
>

- Defined in src/server/auth-client.ts:137

### secret

secret: string

- Defined in src/server/auth-client.ts:130

### sessionStore

sessionStore: AbstractSessionStore

- Defined in src/server/auth-client.ts:120

### `Optional`signInReturnToPath

signInReturnToPath?: string

- Defined in src/server/auth-client.ts:132

### transactionStore

transactionStore: TransactionStore

- Defined in src/server/auth-client.ts:119