Skip to main content
atoti.JwtConfig(
    *,
    key_pair: KeyPair | None = None,
)
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). Creating a session with a custom JWT key pair:
Verifying the signature of a JWT issued by the session:

Attributes

key_pair

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 cryptography.