Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
program-service
Commits
2564748a
Commit
2564748a
authored
3 years ago
by
Kartheek Palla
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-000 fix: api key issue
parent
ede3b7d2
SB-23374
dependabot/npm_and_yarn/src/async-2.6.4
dependabot/npm_and_yarn/src/axios-0.21.2
dependabot/npm_and_yarn/src/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/lodash-4.17.21
dependabot/npm_and_yarn/src/moment-2.29.4
dependabot/npm_and_yarn/src/moment-timezone-0.5.37
dependabot/npm_and_yarn/src/node-fetch-2.6.7
dependabot/npm_and_yarn/src/qs-and-body-parser-and-express-6.5.3
dependabot/npm_and_yarn/src/redis-3.1.1
dependabot/npm_and_yarn/src/simple-get-2.8.2
dependabot/npm_and_yarn/src/underscore-1.12.1
master
release-4.5.0
release-4.6.0
release-4.7.0
release-4.8.0
release-4.9.0
release-5.1.0
test-issue
release-5.1.0_RC1
release-4.9.0_RC1
release-4.8.0_RC3
release-4.8.0_RC2
release-4.8.0_RC1
release-4.7.0_RC6
release-4.7.0_RC5
release-4.7.0_RC4
release-4.7.0_RC3
release-4.7.0_RC2
release-4.7.0_RC1
release-4.6.0_RC6
release-4.6.0_RC5
release-4.6.0_RC4
release-4.6.0_RC3
release-4.6.0_RC2
release-4.6.0_RC1
release-4.5.0_RC1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/helpers/googleOauthHelper.js
+3
-1
src/helpers/googleOauthHelper.js
src/package.json
+1
-0
src/package.json
with
4 additions
and
1 deletion
+4
-1
src/helpers/googleOauthHelper.js
+
3
−
1
View file @
2564748a
...
...
@@ -4,12 +4,14 @@ const fs = require('fs');
const
os
=
require
(
'
os
'
);
const
path
=
require
(
'
path
'
);
const
envVariables
=
require
(
"
../envVariables
"
);
const
utf8
=
require
(
'
utf8
'
);
class
GoogleOauth
{
constructor
()
{
console
.
log
(
'
KEY =======>
'
,
utf8
.
encode
(
envVariables
.
SUNBIRD_GOOGLE_SERVICE_ACCOUNT_CREDENTIAL
.
private_key
));
this
.
auth
=
new
google
.
auth
.
GoogleAuth
({
credentials
:
{
"
private_key
"
:
envVariables
.
SUNBIRD_GOOGLE_SERVICE_ACCOUNT_CREDENTIAL
.
private_key
,
"
private_key
"
:
utf8
.
encode
(
envVariables
.
SUNBIRD_GOOGLE_SERVICE_ACCOUNT_CREDENTIAL
.
private_key
)
,
"
client_email
"
:
envVariables
.
SUNBIRD_GOOGLE_SERVICE_ACCOUNT_CREDENTIAL
.
client_email
},
scopes
:
[
...
...
This diff is collapsed.
Click to expand it.
src/package.json
+
1
−
0
View file @
2564748a
...
...
@@ -59,6 +59,7 @@
"sequelize"
:
"^5.21.5"
,
"underscore"
:
"^1.9.2"
,
"uuid"
:
"^3.2.1"
,
"utf8"
:
"^3.0.0"
,
"xhr2"
:
"^0.2.1"
},
"devDependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets