2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Page.authenticate
|
|
|
|
---
|
|
|
|
|
|
|
|
# Page.authenticate() method
|
|
|
|
|
|
|
|
Provide credentials for `HTTP authentication`.
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Page {
|
2023-11-15 10:48:54 +00:00
|
|
|
abstract authenticate(credentials: Credentials): Promise<void>;
|
2022-08-06 14:49:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| ----------- | ----------------------------------------- | ----------- |
|
|
|
|
| credentials | [Credentials](./puppeteer.credentials.md) | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
To disable authentication, pass `null`.
|