We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is this a bug as it didn't return anything
The text was updated successfully, but these errors were encountered:
Looks like it to me, otherwise the data passed to TokenModel is undefined.
data
TokenModel
undefined
handle method in /oauth2-server/lib/handlers/token-handler.js:
handle
.then(function(client) { return this.handleGrantType(request, client); }) .tap(function(data) { var model = new TokenModel(data, {allowExtendedTokenAttributes: this.allowExtendedTokenAttributes});
Also, TokenModel is looking for client instead of clientId and user instead of userId.
client
clientId
user
userId
MemoryCache.prototype.saveToken = function(token, client, user) { const data = { accessToken: token.accessToken, accessTokenExpiresAt: token.accessTokenExpiresAt, client: client.clientId, refreshToken: token.refreshToken, refreshTokenExpiresAt: token.refreshTokenExpiresAt, user: user.id }; this.tokens.push(data); return data; };
Sorry, something went wrong.
No branches or pull requests
is this a bug as it didn't return anything
The text was updated successfully, but these errors were encountered: