# 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 113

##### Returns:

the auth handler

Type
  AuthHandler