Skip to content

Instantly share code, notes, and snippets.

@ericyd
Created January 6, 2021 21:24
Show Gist options
  • Save ericyd/0f6185730f8c84f3fc09509ce7d2177a to your computer and use it in GitHub Desktop.
Save ericyd/0f6185730f8c84f3fc09509ce7d2177a to your computer and use it in GitHub Desktop.
User Registration
User Registration
User enters phone number -> Send authentication SMS
Send authentication SMS
User taps authentication link -> Prove checks mobile identity
Prove checks mobile identity
User is valid -> Registration complete
User is invalid -> Error message
Error message
User enters phone number -> Send authentication SMS
User exits registration -> Exit app
Registration complete
Exit app
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