From aad518617a2ea44cf814b39dc648ea4834fb9da7 Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Mon, 25 Apr 2022 20:42:31 -0300 Subject: [PATCH] Auth secret code handling bugfix --- src/Pages/Auth/Auth.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Pages/Auth/Auth.jsx b/src/Pages/Auth/Auth.jsx index 07b34fa..d7b4e78 100644 --- a/src/Pages/Auth/Auth.jsx +++ b/src/Pages/Auth/Auth.jsx @@ -39,8 +39,7 @@ function Auth() { data: {code: temporalCode} }) .then(res => { - console.log(res) - setPermanentCode(res ? res.data : null) + setPermanentCode(res ? res.data.access_token : null) }) .catch(err => { console.log(err.response)