- if the app initiations are not done yet:
- welcome operations
- else:
- run routine work flow
-
introduce Neo AUth in few lines
-
explain for user and grant required permission permission
- if all permissions not granted prompt the user if he/she want to retry or want to exit the app
-
if there was files from previous installation:
- read origins and user data
-
else:
- create app directory
- save initialized = true in local storage
- get user data
-
register operatoin:
- grant user permission to send required fields to the server
- generate key pairs
- send required fields and pub key to server and get registration encrypted token and 2fa key
- send registration decrypted token and verify 2fa key
- if anything was ok then add website to registered origins and save 2fa key and pub and private keys
- send session id and show registration successfull , you are logged in now
-
login operations:
- send session_id and user_id and get encrypted token
- send decrypted token and 2fa token and show successfull login message