mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-29 11:12:18 +03:00
added note to getUser method in sc2 login
This commit is contained in:
parent
abed24b4e8
commit
411ee5b77b
@ -130,7 +130,10 @@ export const loginWithSC2 = async (code) => {
|
||||
const scTokens = await getSCAccessToken(code);
|
||||
hsApi.setAccessToken(get(scTokens, 'access_token', ''));
|
||||
const scAccount = await hsApi.me();
|
||||
const account = await getUser(scAccount.account.name);
|
||||
|
||||
//NOTE: even though sAccount.account has account data but there are certain properties missing from hsApi variant, for instance account.username
|
||||
//that is why we still have to fetch account data using dhive, thought post processing done in dhive variant can be done in utils in future
|
||||
const account = await getUser(scAccount.account.name);
|
||||
let avatar = '';
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user