@salesforce/b2c-tooling-sdk / auth / AuthStrategy
Interface: AuthStrategy
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:6
Methods
fetch()
fetch(
url,init?):Promise<Response>
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:11
Performs a fetch request with authentication. Implementations MUST handle header injection and 401 retries (token refresh) internally.
Parameters
url
string
init?
RequestInit
Returns
Promise<Response>
getAuthorizationHeader()?
optionalgetAuthorizationHeader():Promise<string>
Defined in: packages/b2c-tooling-sdk/src/auth/types.ts:16
Optional: Helper for legacy clients (like a strict WebDAV lib) that need the raw header.
Returns
Promise<string>