Skip to content

Commit

Permalink
chore: parse one time only
Browse files Browse the repository at this point in the history
  • Loading branch information
caohanh1502 authored Jun 26, 2024
1 parent 45da9e4 commit 5781a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
const initialToken = localStorage.getItem("zalo_access_token");
alert(initialToken);
const user_access_token = JSON.parse(initialToken).access_token;
document.getElementById("user_token").innerHTML = "access_token = " + JSON.parse(initialToken).access_token;
document.getElementById("user_token").innerHTML = "access_token = " + user_access_token;

// Display information of user
fetch("https://graph.zalo.me/v2.0/me?fields=id,name,picture",
Expand Down

0 comments on commit 5781a8b

Please sign in to comment.