Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
Refresh token must have a user ID (#419)
Browse files Browse the repository at this point in the history
* Refresh token must have a user ID

* Update token.js

* Update token.js
  • Loading branch information
francisco-sanchez-molina authored and ekryski committed Oct 23, 2017
1 parent 7663054 commit 5290746
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ export class Service {
}

const options = this.options;
const data = params;
const data = {
[options.idField]: params.data[options.idField]
};

// Our before hook determined that we had a valid token or that this
// was internally called so let's generate a new token with the user
// id and return both the ID and the token.
Expand Down

0 comments on commit 5290746

Please sign in to comment.