return expiresAt as ISO-string for API consistency

This commit is contained in:
Girish Ramakrishnan
2016-06-03 10:11:09 -07:00
parent 6d8f1f90d4
commit 49dd584a41

View File

@@ -80,7 +80,7 @@ function issueDeveloperToken(user, auditSource, callback) {
eventlog.add(eventlog.ACTION_USER_LOGIN, auditSource, { authType: 'cli', userId: user.id, username: user.username });
callback(null, { token: token, expiresAt: expiresAt });
callback(null, { token: token, expiresAt: new Date(expiresAt).toISOString() });
});
}