Skip to content

Commit

Permalink
correct authentication manager settings to JWT-only
Browse files Browse the repository at this point in the history
  • Loading branch information
michael7nightingale committed Oct 19, 2023
1 parent 4093da2 commit c57a951
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/src/core/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@

class Server:

def __init__(self, use_cookies: bool = False):
self.use_cookies = use_cookies
def __init__(self):
self._app = FastAPI()
self._settings = get_app_settings()

Expand Down Expand Up @@ -45,7 +44,7 @@ def _configurate_app(self) -> None:
# auth manager settings
self.app.state.auth_manager = AuthManager(
app=self.app,
use_cookies=self.use_cookies,
use_cookies=False,
user_model=UserCustomModel,
algorithm=self.settings.ALGORITHM,
secret_key=self.settings.SECRET_KEY,
Expand Down

0 comments on commit c57a951

Please sign in to comment.