Skip to content

PERS SDK - v2.3.26 / Exports / AuthConfig

Interface: AuthConfig

Auth configuration for creating providers

Table of contents

Properties

Properties

authType

Optional authType: AccountOwnerType

Defined in

core/auth/auth-provider.interface.ts:58


projectKey

Optional projectKey: string

Defined in

core/auth/auth-provider.interface.ts:59


tokenProvider

Optional tokenProvider: () => Promise<null | string>

Type declaration

▸ (): Promise<null | string>

Returns

Promise<null | string>

Defined in

core/auth/auth-provider.interface.ts:60


onAuthStatusChange

Optional onAuthStatusChange: (status: AuthStatus) => Promise<void>

Type declaration

▸ (status): Promise<void>

Parameters
NameType
statusAuthStatus
Returns

Promise<void>

Defined in

core/auth/auth-provider.interface.ts:61


storage

Optional storage: TokenStorage

Custom token storage (overrides auto-detection)

Defined in

core/auth/auth-provider.interface.ts:63


dpop

Optional dpop: Object

DPoP Configuration

Type declaration

NameType
enabledboolean
cryptoProvider?DPoPCryptoProvider

Defined in

core/auth/auth-provider.interface.ts:65