DeviseTokenAuth::Concerns::SetUserByToken
. Include this concern to provide access to controller methods such as authenticate_user!
, user_signed_in?
, etc.ApplicationController
so that all children of that controller include the concern as well.before_action :authenticate_user!
User
is signed-in.current_user
User
, or nil
if unavailable.user_signed_in?
true
if a User
is signed in, otherwise false
.devise_token_auth_group
update_auth_header
User
, the helper method names will change. For example, if the user model is called Admin
, the methods would look like this:before_action :authenticate_admin!
admin_signed_in?
current_admin
access-token
client
expiry
uid