Skip to content

Instantly share code, notes, and snippets.

@kalyantm
Last active March 10, 2020 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kalyantm/f0e7039a4d809886e36c6857f15ed55d to your computer and use it in GitHub Desktop.
Save kalyantm/f0e7039a4d809886e36c6857f15ed55d to your computer and use it in GitHub Desktop.
Add Phone Number Flow
Add Phone Number Flow
Add Phone Number
add_phone_number -> Verify Phone Number
Verify Phone Number
resend_code -> Resend Code
verify_phone_number -> Verifying Code
check_phone_number -> Redirect Phone Number
Resend Code
success -> Resend Code Success
failure -> Resend Code Failure
Resend Code Success
resend_code -> Resend Code
verify_phone_number -> Verifying Code
check_phone_number -> Redirect Phone Number
Resend Code Failure
resend_code -> Resend Code
verify_phone_number -> Verifying Code
check_phone_number -> Redirect Phone Number
Verifying Code
success -> Added Phone Number
failure -> Verify Phone Number Error
Verify Phone Number Error
resend_code -> Resend Code
check_number -> Redirect Phone Number
Added Phone Number
add_another_phone_number -> Verify Phone Number
Redirect Phone Number
phone_number_present -> Added Phone Number
no_phone_number_present -> Add Phone Number
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment