flask_more_smorest.perms.jwt

Functions

init_jwt(app)

Initialize JWTManager with user lookup callbacks.

flask_more_smorest.perms.jwt.init_jwt(app)[source]

Initialize JWTManager with user lookup callbacks.

Parameters:

app (Flask) – Flask application to initialize JWT for

Raises:

RuntimeError – If JWT_SECRET_KEY is not set in production (when DEBUG and TESTING are both False)

Return type:

None