Context
Background
No login flow for mvp. userId and userEmail are hardcoded in .env
and bootstrapped into MMKV on first launch. We then fetch the user record
from the server and write it into SQLite as the FK anchor for all subsequent
syncs.
Tasks
MMKV bootstrap
User identity fetch
| Column |
Source |
id |
response id |
username |
response username |
email |
response email |
first_name |
response firstName |
last_name |
response lastName |
MMKV keys set here
| Key |
Value |
Set when |
userId |
00 |
App startup |
userEmail |
user@fluent.com |
App startup |
Acceptance criteria
Context
Background
No login flow for mvp.
userIdanduserEmailare hardcoded in.envand bootstrapped into MMKV on first launch. We then fetch the user record
from the server and write it into SQLite as the FK anchor for all subsequent
syncs.
Tasks
MMKV bootstrap
USER_IDandUSER_EMAILfrom.envat app startupuserId(int),userEmail(string)userEmailinto the existing request interceptor as thex-user-emailheader on all authenticated requestsUser identity fetch
GET /users/email/:emailusinguserEmailfrom MMKVuserstable:ididusernameusernameemailemailfirst_namefirstNamelast_namelastNameMMKV keys set here
userId00userEmailuser@fluent.comAcceptance criteria
x-user-emailheaderuserIdanduserEmailare readable from MMKV immediately after app launchuserstable has exactly 1 row after first launchid)