mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 17:14:22 +03:00
Fixed sc login issue
This commit is contained in:
parent
78f54da152
commit
0e8aedc59b
@ -128,7 +128,7 @@ export const loginWithSC2 = async (code, isPinCodeOpen) => {
|
||||
postingKey: '',
|
||||
activeKey: '',
|
||||
memoKey: '',
|
||||
accessToken: scTokens.access_token,
|
||||
accessToken: '',
|
||||
};
|
||||
|
||||
if (isPinCodeOpen) {
|
||||
@ -177,8 +177,10 @@ export const setUserDataWithPinCode = async data => {
|
||||
get(userData, 'memoKey') ||
|
||||
get(userData, 'postingKey');
|
||||
|
||||
if (publicKey) {
|
||||
data.password = decryptKey(publicKey, data.pinCode);
|
||||
}
|
||||
}
|
||||
|
||||
const updatedUserData = getUpdatedUserData(userData, data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user