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
I managed myself to create a different before_action based on authenticate_and_set_resources doing exactly what I want, but a configuration for letting both behaviours would be great. Tell me if you need this in your gem, I will do a PR.
The text was updated successfully, but these errors were encountered:
I would like a configuration option allowing to have a guest access. If no bearer token was sent, then
authenticate_and_set_user
should just return without any error andcurrent_user
would be left asnil
. The line to change is this: https://github.com/Gokul595/api_guard/blob/master/lib/api_guard/jwt_auth/authentication.rb#L28I managed myself to create a different
before_action
based onauthenticate_and_set_resources
doing exactly what I want, but a configuration for letting both behaviours would be great. Tell me if you need this in your gem, I will do a PR.The text was updated successfully, but these errors were encountered: