mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +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 accessToken = decryptKey(token, digitPinCode);
|
||||
|
||||
if (accessToken) {
|
||||
if (!request.data) {
|
||||
if (accessToken && !request.data?.code ) {
|
||||
if (!request.data){
|
||||
request.data = {};
|
||||
}
|
||||
request.data.code = accessToken;
|
||||
|
Loading…
Reference in New Issue
Block a user