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

It should be user_signed_in?, not user_signed_in.