> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# atoti.JwtConfig

### *final class* atoti.JwtConfig

The JWT config.

Atoti uses JSON Web Tokens to authenticate requests between its components (e.g. between the app running in the browser and the session).

#### key\_pair *: [KeyPair](./atoti.key_pair#atoti.KeyPair) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

The key pair used to sign the JWT.

If `None`, a random 3072-bit key pair will be generated when the session starts.

Only RSA keys using the PKCS 8 standard are supported.
Key pairs can be generated using a library such as [pycryptodome](https://www.pycryptodome.org/src/examples#generate-public-key-and-private-key).
