@startujn render { direction: down; arrow_spacing: 24 } journey SIGNUP_VERIFY "Sign up and verify your email" description: "Create an account and confirm the email by link, on this device or another" unique_id_friendly: signup_verify start from_home { description: "From the home page" } view signup { title: "Create account"; description: "Name, email and password"; route: /signup } ref sso { journey: SSO_SIGNUP; title: "Sign up with work SSO" } ref signin { journey: SIGNIN; title: "Sign in" } action send_link { type: message; title: "Send verification link"; description: "Account saved, not verified"; channel: email } view check_inbox { type: waiting; title: "Check your inbox"; description: "Resend after 60 s"; route: /signup/check-email } handoff inbox { title: "Verification link"; description: "The user opens their inbox"; channel: email; timeout: 24 h; resume: /verify/:token } view link_expired { title: "Link expired"; description: "Opened after 24 h; works on any device"; route: /verify/expired } start link_opened { type: handoff-return; description: "Later, or on another device"; route: /verify/:token } view verified { title: "Email verified"; description: "Set up your profile"; route: /welcome } end done { type: success; description: "Account active" } from_home --> signup signup -left-> sso : [Use work SSO] { flags: [future] } signup -right-> signin : [Create account] already registered { payload: [email]; flags: [security] } signup --> send_link : [Create account] new email { payload: [name, email, password] } send_link --> check_inbox check_inbox -up-> send_link : [Resend] check_inbox --> inbox : [Open inbox] inbox ..> link_expired : [Open link] expired inbox ..> link_opened : [Open link] valid link_expired -up-> send_link : [Send a new link] link_opened --> verified verified -right-> done : [Continue] @endujn