Account Information Retrieval Principle
In order to let users know the platform account information they use when publishing content, we designed to retrieve platform account information and store the platform information in localStorage
.
The specific implementation is in the src/sync/account.ts
file and the src/sync/account
folder.
First, we added accountKey
and accountInfo
fields to the PlatformInfo
type for attaching platform account information when requesting platform data from the frontend.
Then we need to get this platform account information and store it in localStorage
.