Skip to content

Commit

Permalink
keep data field just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jan 16, 2024
1 parent b5f8a6c commit 86ea657
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/customLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ function customLogin(usernameField, usertypeField) {
username = process.env[usernameField] || "unknown user";
token['sub'] = username;
token['email'] = username;
token['name ']= username;
token['name']= username;
token['data'] = {'collections':["precisionfda collections are not managed here"]}

Check failure on line 14 in handlers/customLogin.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Missing space before value for key 'collections'

Check failure on line 14 in handlers/customLogin.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Missing semicolon
usertype = process.env[usertypeField];
token['userType'] = usertype || "Participant";
// generate token with this info
Expand Down

0 comments on commit 86ea657

Please sign in to comment.