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


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”


and… can you explain ?



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