Invalid session with JWT token



I’m connected from API with JWT token.
I use this token with Authorization: Bearer


const user = await auth.getUser()
return await user.posts().fetch()

Return me an error:

E_INVALID_SESSION: Invalid session

Could you help me please?


Whats the default authenticator inside config/auth.js file


Ok, thank you, it was session instead of jwt