¿Cómo es posible que este código:
console.log('EntroSubscribeTokenBefore', JSON.parse(JSON.stringify(response)));
console.log('EntroSubscribeTokenType', typeof JSON.parse(JSON.stringify(response)));
console.log('EntroSubscribeToken', JSON.parse(JSON.stringify(response)).access_token);
const newToken = Object.assign({}, response);
console.log('NewObject', typeof newToken);
for(let key in newToken){
console.log('Key:', newToken[key])
}
Pinte este resultado?:
console.log: EntroSubscribeTokenBefore
{"access_token":"afcddc76-8322-4186-9b54-aa4143f381eb","token_type":"bearer","refresh_token":"fda3fcf4-8335-45cf-94ca-cd0aec1a90cb","expires_in":29605,"scope":"custom
default","firstname":"testswinetmm_cost","lastname":"testswinetmm_cost","email":"testswinetmm_cost@testingmail.com","uid":"testswinetmm_cost"}
[11:37:46] console.log: EntroSubscribeTokenType string
[11:37:46] console.log: EntroSubscribeToken
[11:37:46] console.log: NewObject object
[11:37:46] console.log: Key: {
[11:37:46] console.log: Key: "
[11:37:46] console.log: Key: a
[11:37:46] console.log: Key: c
[11:37:46] console.log: Key: c
[11:37:46] console.log: Key: e
[11:37:46] console.log: Key: s
[11:37:46] console.log: Key: s
[11:37:46] console.log: Key: _
[11:37:46] console.log: Key: t
[11:37:46] console.log: Key: o
[11:37:46] console.log: Key: k
[11:37:46] console.log: Key: e
[11:37:46] console.log: Key: n
[11:37:46] console.log: Key: "
[11:37:46] console.log: Key: :
[11:37:46] console.log: Key: "
[11:37:46] console.log: Key: a
[11:37:46] console.log: Key: f
[11:37:46] console.log: Key: c
...