From d9c4d847a1879e6575edda3f406e6b240d0193d8 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 31 Aug 2023 16:31:24 +0000 Subject: [PATCH] Fix Strava account linking. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4436 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/gg/handler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/gg/handler.js b/apps/gg/handler.js index 34ed13d6..647e81cd 100644 --- a/apps/gg/handler.js +++ b/apps/gg/handler.js @@ -1,12 +1,13 @@ import * as strava from './strava.js'; async function main() { + print('handler running'); let r = await strava.authorization_code(request.query.code); print('state =', request.query.state); print('body = ', r.body); if (request.query.state && r.body) { let shared_db = await shared_database('state'); - await shared_db.set(request.query.state, r.body); + await shared_db.set(request.query.state, utf8Decode(r.body)); } await respond({ data: r.body,