mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Merge pull request #2303 from ecency/nt/wrong-code-injection
skip access token injection if already present
This commit is contained in:
commit
8eb4f1f4c2
@ -38,7 +38,7 @@ 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 = {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user