mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 20:31:37 +03:00
skip access token injection if already present
This commit is contained in:
parent
3486fb616a
commit
a1cc1c0630
@ -38,8 +38,8 @@ api.interceptors.request.use((request) => {
|
|||||||
const digitPinCode = getDigitPinCode(pin);
|
const digitPinCode = getDigitPinCode(pin);
|
||||||
const accessToken = decryptKey(token, digitPinCode);
|
const accessToken = decryptKey(token, digitPinCode);
|
||||||
|
|
||||||
if (accessToken) {
|
if (accessToken && !request.data?.code ) {
|
||||||
if (!request.data) {
|
if (!request.data){
|
||||||
request.data = {};
|
request.data = {};
|
||||||
}
|
}
|
||||||
request.data.code = accessToken;
|
request.data.code = accessToken;
|
||||||
|
Loading…
Reference in New Issue
Block a user