# Module: vertx-web-js/basic_auth_handler

### Classes

BasicAuthHandler

### Methods

#### (static) BasicAuthHandler.create(authProvider, realm) → {AuthHandler}

Create a basic auth handler, specifying realm

##### Parameters:

Name | Type | Description
--- | --- | ---
`authProvider` | AuthProvider | the auth service to use
`realm` | string | the realm to use

Source:
  - vertx-web-js/basic_auth_handler.js, line 94

##### Returns:

the auth handler

Type
  AuthHandler