I have 'device_token_auth' (0.1.36) gem for the token generation in my ROR web application. I am not much aware of the functionality of this gem. Suddenly an issue come as
NoMethodError: undefined method `[]' for nil:NilClass
And the backtrace picture is as,
The source code for the same gem, device_token_auth
After looking to the code it can be interpreted that tokens[client_id]
or tokens
is missing but since the caller's app/controllers/devise_token_auth/concerns/set_user_by_token.rb:75 in update_auth_header
method update_auth_header
is handeling this case already.
Can someone tell me what is the issue?