Type alias AuthHeader

AuthHeader: {
    Authorization?: string;
}

Represents an authentication header for making authorized HTTP requests.

Type declaration

  • Optional Authorization?: string

Example

const authHeader: AuthHeader = {
Authorization: 'Bearer <token>',
}

// Usage in an HTTP request
const requestOptions: RequestOptions = {
headers: authHeader,
// other request options...
}

Generated using TypeDoc