jamesjmeyer210 / simple-auth

0 stars 0 forks source link

Improve performance of /v1/oauth/token #24

Open jamesjmeyer210 opened 7 months ago

jamesjmeyer210 commented 7 months ago

The endpoint /v1/oauth/token currently returns a response in about 950ms. It should be much faster than this. One performance hit might be due to the many-to-many relationship between users and realms. The database might need to be altered so that a user only belongs to one realm, as well as roles.