Invalid session with JWT token


#1

Hello,

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

But…

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

Return me an error:

E_INVALID_SESSION: Invalid session

Could you help me please?


#2

Whats the default authenticator inside config/auth.js file


#3

Ok, thank you, it was session instead of jwt