const authTokens: AuthTokens = {
accessToken: 'your_access_token',
headers: {
'Custom-Header': 'value',
// other headers...
},
}
// Usage in an HTTP request
const requestOptions: RequestOptions = {
headers: { ...authTokens.headers, Authorization: `Bearer ${authTokens.accessToken}` },
// other request options...
}
Generated using TypeDoc
Represents authentication tokens containing an access token and additional headers.