User App Flow
![](https://devanshixaviers.gitbook.io/~gitbook/image?url=https%3A%2F%2F2042130256-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fassets%252F-MPEQ1VkZcMuHDLIKRgK%252Fsync%252F10a91531bb2d4fa44364477dd6a9528a34d9d68e.png%3Fgeneration%3D1608724154537747%26alt%3Dmedia&width=768&dpr=4&quality=100&sign=feba81bd&sv=2)
When a user logs in for the first time, he/she would have to provide their phone number after which they will receive an otp from firebase authentication. A JWT token will also be generated and an account of that user will be created and stored in the database. After filling the personal details a user can either update profile or skip and move straight to home page.
If the user chooses to update his/her profile then he would have to fill all of his details which are required for KYC verification. The user would upload his/her signature and driving license on firebase storage.
After completing the KYC verification , user will move to home page where he can make a get request to API server to get the firm information and invest in that respective firm. The user can also withdraw some of the amount he invested by making a post request to the API server. And then he/she can logout by making a post request with firebase JWT token to revoke the refresh token from firebase authentication.
Last updated
Was this helpful?