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 {
|
|
|
|
authenticate(credentials: Credentials): Promise<void>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| ----------- | ----------------------------------------- | ----------- |
|
|
|
|
| credentials | [Credentials](./puppeteer.credentials.md) | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
To disable authentication, pass `null`.
|