David Kimura PRO said almost 7 years ago on Rails API - Authentication with JWT :

It should be user_signed_in?, not user_signed_in.