Auth secret code handling bugfix

This commit is contained in:
2022-04-25 20:42:31 -03:00
parent 379476da17
commit aad518617a

View File

@@ -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)