Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
chore(tokens): add a comment about why we're inserting an empty strin…
Browse files Browse the repository at this point in the history
…g for email
  • Loading branch information
rfk committed Nov 17, 2015
1 parent b17b000 commit eed414b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/routes/token.js
Expand Up @@ -270,6 +270,10 @@ function confirmJwt(params) {
throw AppError.invalidAssertion();
}

// We can't know the email based on a service token,
// so we can't cache it locally. Insert an empty string
// for now, while we complete the process of entirely
// removing the 'email' column from our database.
return {
clientId: client.id,
userId: uid,
Expand Down

0 comments on commit eed414b

Please sign in to comment.