mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-01 17:56:48 +03:00
added note to getUser method in sc2 login
This commit is contained in:
parent
abed24b4e8
commit
411ee5b77b
@ -130,6 +130,9 @@ export const loginWithSC2 = async (code) => {
|
||||
const scTokens = await getSCAccessToken(code);
|
||||
hsApi.setAccessToken(get(scTokens, 'access_token', ''));
|
||||
const scAccount = await hsApi.me();
|
||||
|
||||
//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