Skip to content

Commit

Permalink
Revert "Transpile and generate typings"
Browse files Browse the repository at this point in the history
This reverts commit 62dfd14.
  • Loading branch information
peterMuriuki committed Jun 17, 2020
1 parent d26dbd3 commit 03775b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatekeeper/dist/helpers/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getOnadataUserInfo(apiResponse) {
}

function getOpenSRPUserInfo(apiResponse) {
if (!apiResponse.username) {
if (!apiResponse.userName) {
throw new Error(_constants.OAUTH2_CALLBACK_ERROR);
}

Expand All @@ -59,7 +59,7 @@ function getOpenSRPUserInfo(apiResponse) {
email: '',
gravatar: '',
name: '',
username: apiResponse.username
username: apiResponse.userName
}
};
}

0 comments on commit 03775b9

Please sign in to comment.