eluv-io / elv-client-js

Eluvio JavaScript Client
MIT License
9 stars 12 forks source link

Fabric Browser - Account Names not retained and displayed in Accounts Tab #85

Closed elv-arun closed 2 years ago

elv-arun commented 4 years ago

When a new user is created and an account name is added in the profile, the account name is not being displayed in the Account tabs.

Reproduces on https://core.test.contentfabric.io/testv2/#/accounts

Screen Shot 2020-08-11 at 1 36 27 PM
elv-kevin commented 4 years ago

Addressed this in elv-core-js@4cfcbe68818000b724ff2c044115729d6a421ff5

The reason account names weren't showing up is because in authv3, user profiles are no longer public, so core could no longer user metadata unless that user was logged in.

I updated core to save the name and profile image for each account in localstorage. Those will be saved as you log into the accounts (i.e. it won't fix the issue immediately)

I also added the account selection dropdown to the login prompt (that pops up e.g. when you open a fabric browser link) so you can switch accounts more easily.