You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, every time Guardian is used for token verification, a repo call is made to pull out user from the database: SeeSnitchApi.Guardian.resource_from_claims/1
This is not required for all the API calls as user data is not required every time.
We can move the loading user data from the database to load user plug. SeeSnitchApiWeb.Plug.LoadUser
This plug is already being used specifically in those particular controllers where user data is needed.
The text was updated successfully, but these errors were encountered:
At present, every time Guardian is used for token verification, a repo call is made to pull out
user
from the database:See
SnitchApi.Guardian.resource_from_claims/1
This is not required for all the API calls as user data is not required every time.
We can move the loading user data from the database to load user plug.
See
SnitchApiWeb.Plug.LoadUser
This plug is already being used specifically in those particular controllers where user data is needed.
The text was updated successfully, but these errors were encountered: