virgil_sdk.jwt.jwt_generator module

class virgil_sdk.jwt.jwt_generator.JwtGenerator(app_id, api_key, api_public_key_id, lifetime, access_token_signer)[source]

Bases: object

The JwtGenerator class implements Jwt generation.

Parameters
generate_token(identity, data=None)[source]

Generates new JWT using specified identity and additional data.

Parameters
  • identity – Identity to generate with.

  • data – Dictionary with additional data which will be kept in jwt body.

Returns

A new instance of Jwt.