"error": "this._Token.fetchSession is not a function"


#1

async refreshToken({ request, response, auth }) {
const refreshTokenInfo = request.all();

const result = await auth.newRefreshToken().generateForRefreshToken(refreshTokenInfo.refreshToken);

return response.status(200).json(result);

}

input with header Authorization : bearer tokenJWT
{
“refreshToken”: “refreshToken”
}

result: {
“error”: “this._Token.fetchSession is not a function”
}


#2

and… can you explain ?


#3

#4

Dear All,

This topic has been unlisted because it misses a lot of information.

Questions must demonstrate a minimal understanding of the problem being solved . Tell us what you’ve tried to do, why it didn’t work, and how it should work


#5