vertx / io.vertx.ext.auth.jwt / JWTAuth / generateToken

# generateToken

`abstract fun generateToken(claims: JsonObject, options: JWTOptions): String`

Generate a new JWT token.

### Parameters

`claims` - Json with user defined claims for a list of official claims

`options` - extra options for the generation

See Also
<a href="http://www.iana.org/assignments/jwt/jwt.xhtml">www.iana.org/assignments/jwt/jwt.xhtml</a>

Return
JWT encoded token

`open fun generateToken(claims: JsonObject): String`

Generate a new JWT token.

### Parameters

`claims` - Json with user defined claims for a list of official claims

See Also
<a href="http://www.iana.org/assignments/jwt/jwt.xhtml">www.iana.org/assignments/jwt/jwt.xhtml</a>

Return
JWT encoded token