From eed414b62aec2ff3cca6160328a7c3f4acf18ed3 Mon Sep 17 00:00:00 2001 From: Ryan Kelly Date: Wed, 18 Nov 2015 10:20:08 +1100 Subject: [PATCH] chore(tokens): add a comment about why we're inserting an empty string for email --- lib/routes/token.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/routes/token.js b/lib/routes/token.js index c73307e70..ae43d40fb 100644 --- a/lib/routes/token.js +++ b/lib/routes/token.js @@ -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,