Skip to content


The SimpleJWT configuration object is the one behind all the magic that makes this package 100% configurable and its used inside the Esmerald application.

import os

from esmerald import EsmeraldAPISettings
from myapp.backends import BackendAuthentication, RefreshAuthentication

from esmerald_simple_jwt.config import SimpleJWT

DATABASE_URL = os.environ.get("DATABASE_URI", "sqlite:///db.sqlite")

class AppSettings(EsmeraldAPISettings):
    The settings object for the application.

    def simple_jwt(self) -> SimpleJWT:
        return SimpleJWT(

API Reference

You can check all the available parameters to use with this simple configuration in the SimpleJWT API Reference.