app/controllers/application_controller.rb
def process_token
    service = Auth::ProcessToken.call(request)

    return respond_with service, status: :unauthorized if service.errors.any?

    @current_user_id = service.current_user_id
  end
# Check for auth headers - if present, decode or send unauthorized response (called always to allow current_user)
Check for auth headers - if present, decode or send unauthorized response (called always to allow current_user)
Check for auth headers - if present decode or send unauthorized response ( called always to allow current_user )
def process_token
    service = Auth::ProcessToken.call(request)
    return respond_with service, status: :unauthorized if service.errors.any?
    @current_user_id = service.current_user_id
  end
def process_token service = Auth :: ProcessToken . call ( request ) return respond_with service , status : :unauthorized if service . errors . any? @current_user_id = service . current_user_id end
Check for auth headers - if present, decode or send unauthorized response (called always to allow current_user)
Check for auth headers - if present decode or send unauthorized response ( called always to allow current_user )