We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d3e15b + 24b5181 commit d88beceCopy full SHA for d88bece
google-sheet-sync/functions/index.js
@@ -65,7 +65,7 @@ exports.oauthcallback = functions.https.onRequest(async (req, res) => {
65
res.set('Cache-Control', 'private, max-age=0, s-maxage=0');
66
const code = req.query.code;
67
try {
68
- const tokens = await functionsOauthClient.getToken(code);
+ const {tokens} = await functionsOauthClient.getToken(code);
69
// Now tokens contains an access_token and an optional refresh_token. Save them.
70
await admin.database().ref(DB_TOKEN_PATH).set(tokens);
71
return res.status(200).send('App successfully configured with new Credentials. '
0 commit comments