"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”
}