Skip to content

Commit

Permalink
DPAT-1711 Removed the redundant token field
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao2 committed Oct 10, 2023
1 parent e54b763 commit 0d31143
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function fetchUserProfile(accessToken, context, callback) {
nickname: context.name,
name: context.name,
username: context.user_name,
_deliusAccessToken: accessToken,
_accessToken: accessToken,
email: context.user_name + "+" + context.user_id + "@" + context.auth_source,
};
Expand Down
2 changes: 1 addition & 1 deletion tests/api/fixtures/nomis_body.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"options": {
"scripts": {
"fetchUserProfile": "function fetchUserProfile(accessToken, context, callback) {\n // The email is only for auth0 usage purpose, not the actual email of login user\n const profile = {\n sub: context.sub,\n user_id: context.user_id,\n auth_source: context.auth_source,\n nickname: context.name,\n name: context.name,\n username: context.user_name,\n _deliusAccessToken: accessToken,\n _accessToken: accessToken,\n email: context.user_name + \"+\" + context.user_id + \"@\" + context.auth_source,\n };\n callback(null, profile);\n}\n"
"fetchUserProfile": "function fetchUserProfile(accessToken, context, callback) {\n // The email is only for auth0 usage purpose, not the actual email of login user\n const profile = {\n sub: context.sub,\n user_id: context.user_id,\n auth_source: context.auth_source,\n nickname: context.name,\n name: context.name,\n username: context.user_name,\n _accessToken: accessToken,\n email: context.user_name + \"+\" + context.user_id + \"@\" + context.auth_source,\n };\n callback(null, profile);\n}"
},
"client_id": "test_nomis_connection_id",
"client_secret": "WNXFkM3FCTXJhUWs0Q1NwcKFu",
Expand Down

0 comments on commit 0d31143

Please sign in to comment.