-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently auth0_ex spawns a single GenServer that takes care of storing, refreshing and serving all tokens.
This may bring some issues, as problems with a token may affect other tokens as well.
For instance, the first time a token is retrieved for a new audience the GenServer retrieves that token synchronously, hence delaying the processing of requests for any other token.
This could be fixed by having a GenServer for each token, with an entrypoint that dispaches requests to the correct GenServer according to the target audience.
Another nice effect of this approach is that it would make the code simpler and the responsibilities more well separated.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request