Skip to content

Conversation

nmveeresh
Copy link
Collaborator

@nmveeresh nmveeresh commented Sep 25, 2025

Description

Updates the auth.py router to correctly await the asynchronous create_access_token(user) function during login.

Changes

File: mcpgateway/routers/auth.py

# Before
access_token, expires_in = create_access_token(user)

# After
access_token, expires_in = await create_access_token(user)

@nmveeresh nmveeresh marked this pull request as ready for review September 25, 2025 10:11
@crivetimihai
Copy link
Member

Hello, can you please check on the PR - the description and changes don't match.

@nmveeresh
Copy link
Collaborator Author

Changed PR tittle and description accordingly.

@nmveeresh nmveeresh changed the title Revert fast-time-server image tag to 0.7.0 Fix async token creation Sep 25, 2025
Copy link
Member

@crivetimihai crivetimihai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already fixed in main, closing. Thanks for the PR & testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants