# Class: JWTAuth

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

#### new JWTAuth()

  Source:
    - jwt_auth.js, line 30

### Methods

#### 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:
    - jwt_auth.js, line 44

  ##### Returns:

  JWT encoded token
  Type
    string