mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 03:11:38 +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,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