feat: implement token in fetch api

This commit is contained in:
caturbgs
2021-12-09 23:06:16 +07:00
parent 84d3085c0c
commit 4846e7022a
2 changed files with 10 additions and 9 deletions

View File

@@ -26,6 +26,7 @@ export class Authentication {
};
try {
console.log(JSON.parse(atob(this.accessToken.split('.')[1])), "isi jwt")
return JSON.parse(atob(this.accessToken.split('.')[1]));
} catch (err) {
return defaultValue;