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
thanks for suggestion. I don't think we should add this, though. The main reason is that it goes beyond the scope of Sorcery - it has nothing to do with authentication. Another reason is that there are a few places where user model is loaded - not only find_by_credentials but also load_from_provider, find_by_token etc, so adding this would add a lot of complexity.
I'd also like to be able to use includes to do eager loading with the current_user, to load (for instance) associated permissions used for authorization.
The pull request for adding a scope_for_authentication seems like it'd support this use case: #727
Would it be acceptable to add options for doing eager loading when logging in a user?
E.g.
The text was updated successfully, but these errors were encountered: