dymmond / esmerald-simple-jwt

A powerful simple JWT integration with Esmerald
MIT License
6 stars 0 forks source link

Configuration error #5

Open AlexMorra opened 4 hours ago

AlexMorra commented 4 hours ago

According to the introduction section, an error occurs when launching the application (make run):

image

But if you import BackendAuthentication, RefreshAuthentication directly into the simple_jwt method, it will start.

dependencies: python=3.11 uvicorn=0.30.6 esmerald=3.4.1 esmerald-simple-jwt=0.2.0

tarsil commented 3 hours ago

@AlexMorra thank you for reporting this. I find this odd. In your make run, are you exposing the ESMERALD_MODULE_SETTINGS to the Dev one?

tarsil commented 2 hours ago

Can you provide more details how you setup your configs here, please? Just to replicate and address this.

AlexMorra commented 2 hours ago

Yes, of course. The default configuration from directives

esmerald createproject esmerald_auth esmerald createapp accounts

then everything is according to the section Introduction.

I can share an example project if it would be an easier way to show it.

tarsil commented 2 hours ago

Yes, of course. The default configuration from directives

esmerald createproject esmerald_auth esmerald createapp accounts

then everything is according to the section Introduction.

I can share an example project if it would be an easier way to show it.

That would be great. This way I can debug it and find the root cause

AlexMorra commented 2 hours ago

here is an example, I used make run https://github.com/AlexMorra/esmerald_auth_example

tarsil commented 1 hour ago

Thank you, allow us some time to investigate and come back to you