AuthClient | @auth0/nextjs-auth0 - v4.1.0
Description: Documentation for @auth0/nextjs-auth0

# Class AuthClient

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

#####
Index

### Constructors

constructor

### Methods

getTokenSet
handleAccessToken
handleBackChannelLogout
handleCallback
handleLogin
handleLogout
handleProfile
handler
startInteractiveLogin

##
Constructors

### constructor

- new AuthClient(options: AuthClientOptions): AuthClient

  #### Parameters

  - options: AuthClientOptions

  #### Returns AuthClient

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

##
Methods

### getTokenSet

- getTokenSet(tokenSet: TokenSet): Promise<[SdkError, null] | [null, TokenSet]>

  getTokenSet returns a valid token set. If the access token has expired, it will attempt to refresh it using the refresh token, if available.

  #### Parameters

  - tokenSet: TokenSet

  #### Returns Promise<[SdkError, null] | [null, TokenSet]>

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

### handleAccessToken

- handleAccessToken(req: NextRequest): Promise<NextResponse<unknown>>

  #### Parameters

  - req: NextRequest

  #### Returns Promise<NextResponse<unknown>>

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

### handleBackChannelLogout

- handleBackChannelLogout(req: NextRequest): Promise<NextResponse<unknown>>

  #### Parameters

  - req: NextRequest

  #### Returns Promise<NextResponse<unknown>>

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

### handleCallback

- handleCallback(req: NextRequest): Promise<NextResponse<unknown>>

  #### Parameters

  - req: NextRequest

  #### Returns Promise<NextResponse<unknown>>

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

### handleLogin

- handleLogin(req: NextRequest): Promise<NextResponse<unknown>>

  #### Parameters

  - req: NextRequest

  #### Returns Promise<NextResponse<unknown>>

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

### handleLogout

- handleLogout(req: NextRequest): Promise<NextResponse<unknown>>

  #### Parameters

  - req: NextRequest

  #### Returns Promise<NextResponse<unknown>>

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

### handleProfile

- handleProfile(req: NextRequest): Promise<NextResponse<unknown>>

  #### Parameters

  - req: NextRequest

  #### Returns Promise<NextResponse<unknown>>

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

### handler

- handler(req: NextRequest): Promise<NextResponse<unknown>>

  #### Parameters

  - req: NextRequest

  #### Returns Promise<NextResponse<unknown>>

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

### startInteractiveLogin

- startInteractiveLogin(
  options?: StartInteractiveLoginOptions,
  ): Promise<NextResponse<unknown>>

  #### Parameters

  - options: StartInteractiveLoginOptions = {}

  #### Returns Promise<NextResponse<unknown>>

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