# Module: vertx-web-js/o_auth2_auth_handler

### Classes

OAuth2AuthHandler

### Methods

#### (static) OAuth2AuthHandler.create(authProvider, callbackURL) → {OAuth2AuthHandler}

Create a OAuth2 auth handler with host pinning

##### Parameters:

Name | Type | Description
--- | --- | ---
`authProvider` | OAuth2Auth | the auth provider to use
`callbackURL` | string | the callback URL you entered in your provider admin console, usually it should be something like: `https://myserver:8888/callback`

Source:
  - vertx-web-js/o_auth2_auth_handler.js, line 144

##### Returns:

the auth handler

Type
  OAuth2AuthHandler