Skip to content

Instantly share code, notes, and snippets.

@IAmMorrow
IAmMorrow / machine.js
Created November 6, 2019 17:48
Generated by XState Viz: https://xstate.js.org/viz
// States
const SELECT_ACCOUNT = 'select_account'
const PREPARE_DEVICE = 'prepare_device'
const INFORM_USER = 'inform_user'
const VERIFY_DEVICE = 'verify_device'
// Events
const ACCOUNT_SELECTED = 'account_selected'
const DEVICE_READY = 'device_ready'
const DEVICE_VERIFIED = 'device_verified'
@IAmMorrow
IAmMorrow / machine.js
Created November 6, 2019 17:32
Generated by XState Viz: https://xstate.js.org/viz
const SELECT_ACCOUNT = 'select_account'
const PREPARE_DEVICE = 'prepare_device'
const INFORM_USER = 'inform_user'
const VERIFY_DEVICE = 'verify_device'
// Events
const ACCOUNT_SELECTED = 'account_selected'
const DEVICE_READY = 'device_ready'
const DEVICE_VERIFIED = 'device_verified'
const DEVICE_DECLINED = 'device_declined'

Keybase proof

I hereby claim:

  • I am iammorrow on github.
  • I am iammorrow (https://keybase.io/iammorrow) on keybase.
  • I have a public key ASAOm56tWiw705OixgiDaGimE0RBMo8BaJFsILQk87i26wo

To claim this, I am signing this object: