We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79ffcdc commit bbd08f2Copy full SHA for bbd08f2
ellar_jwt/module.py
@@ -56,10 +56,8 @@ def register_setup(cls) -> ModuleSetup:
56
def register_setup_factory(
57
module: t.Type["JWTModule"], config: Config
58
) -> DynamicModule:
59
- if config.get("JWT_CONFIG"):
60
- schema = JWTConfiguration(
61
- **dict(config.JWT_CONFIG) # type:ignore[arg-type]
62
- )
+ if config.get("JWT_CONFIG") and isinstance(config.JWT_CONFIG, dict):
+ schema = JWTConfiguration(**dict(config.JWT_CONFIG))
63
return DynamicModule(
64
module,
65
providers=[
0 commit comments