mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +03:00
refreshing access token for masterKey login as well
This commit is contained in:
parent
f494fa90f8
commit
75a845410a
@ -313,10 +313,8 @@ export const verifyPinCode = async (data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result.length > 0) {
|
if (result.length > 0) {
|
||||||
if (get(userData, 'authType', '') === AUTH_TYPE.STEEM_CONNECT) {
|
|
||||||
await refreshSCToken(userData, get(data, 'pinCode'));
|
await refreshSCToken(userData, get(data, 'pinCode'));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn('Failed to verify pin in auth: ', data, err);
|
console.warn('Failed to verify pin in auth: ', data, err);
|
||||||
|
Loading…
Reference in New Issue
Block a user