# Class: JWTAuth

## vertx-auth-jwt-js/jwt_auth~ JWTAuth

#### new JWTAuth()

Source:
  - vertx-auth-jwt-js/jwt_auth.js, line 32

### Methods

#### authenticate(arg0, arg1)

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | Object |
`arg1` | function |

Source:
  - vertx-auth-jwt-js/jwt_auth.js, line 44

#### generateToken(claims, options) → {string}

Generate a new JWT token.

##### Parameters:

Name | Type | Description
--- | --- | ---
`claims` | Object | Json with user defined claims for a list of official claims
`options` | Object | extra options for the generation

Source:
  - vertx-auth-jwt-js/jwt_auth.js, line 65

##### Returns:

JWT encoded token

Type
  string