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 | None = None#

The key pair used to sign the JWT.

If None, a random key pair of 2048 bytes 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.