Skip to content

Instantly share code, notes, and snippets.

@oravecz
Created November 14, 2021 03:53
Show Gist options
  • Save oravecz/8f590c40b3b9211bf0fa35fe60d6eb90 to your computer and use it in GitHub Desktop.
Save oravecz/8f590c40b3b9211bf0fa35fe60d6eb90 to your computer and use it in GitHub Desktop.
DFL Sports - Auth Flow
stateDiagram-v2
[*] --> auth_signin
[*] --> auth_signup
# [*] --> auth_signout
# [*] --> auth_reset
# [*] --> auth_delete
# [*] --> auth_confirm
[*] --> deeplink
state auth_signin {
[*] --> signin_form
signin_form --> auth_forgot
signin_form --> auth_signup
signin_form --> signin_action
signin_action --> valid_auth?
valid_auth? --> signin_form : no (show error)
valid_auth? --> from_param? : yes
from_param? --> nav_welcome : no
from_param? --> nav_from : yes
nav_from --> touch_stored?
nav_welcome --> touch_stored?
touch_stored? --> confirm_touch? : no
touch_stored? --> nav_continue : yes
confirm_touch? --> store_touch_yes : yes
confirm_touch? --> store_touch_no : no
store_touch_yes --> nav_continue
store_touch_no --> nav_continue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment