PERS SDK - v2.3.26 / Exports / PersAuthProvider
Core authentication provider interface
PersAuthProvider
▸ getToken(): Promise<null | string>
Get current access token
Promise<null | string>
core/auth/auth-provider.interface.ts:17
▸ getProjectKey(): Promise<null | string>
Get project key for API requests
Promise<null | string>
core/auth/auth-provider.interface.ts:20
▸ onAuthStatusChange(status): Promise<void>
Handle authentication status changes
| Name | Type |
|---|---|
status | AuthStatus |
Promise<void>
core/auth/auth-provider.interface.ts:23
▸ getAuthHeaders(token, method?, url?): Promise<Record<string, string>>
Get derived authentication headers (e.g. DPoP)
| Name | Type | Description |
|---|---|---|
token | null | string | The current access token |
method? | string | HTTP Method |
url? | string | Request URL |
Promise<Record<string, string>>
core/auth/auth-provider.interface.ts:31
• Readonly authType: AccountOwnerType
Authentication type