Merge pull request #2303 from ecency/nt/wrong-code-injection

skip access token injection if already present
This commit is contained in:
Feruz M 2022-05-13 11:15:40 +03:00 committed by GitHub
commit 8eb4f1f4c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ api.interceptors.request.use((request) => {
const digitPinCode = getDigitPinCode(pin);
const accessToken = decryptKey(token, digitPinCode);
if (accessToken) {
if (accessToken && !request.data?.code ) {
if (!request.data){
request.data = {};
}