isketch Templates Convert Format Open the editor

Auth flow

7 shapes and 9 connections, sketched in isketch.

Open this template

Auth flow credentials verify issue refresh sign stores it httpOnly cookie rotate reset link User Browser or app Login page Email and password form Auth service Verifies credentials Sessions Refresh tokens, hashed Access token 15 minutes, JWT Refresh token 30 days, rotating Mailer Magic links and resets

The .flow source

The whole template as text: copy it, keep it in your repo, hand it to an agent.

examples/templates/auth-flow.flow
title: Auth flow
note: Email and password login with refresh tokens.

user = terminal "User" -- Browser or app
login = process "Login page" -- Email and password form
auth = process "Auth service" -- Verifies credentials
sessions = database "Sessions" -- Refresh tokens, hashed
access = data "Access token" -- 15 minutes, JWT
refresh = data "Refresh token" -- 30 days, rotating
mail = process "Mailer" -- Magic links and resets

user -> login : credentials
login -> auth : verify
auth -> sessions : issue refresh
auth -> access : sign
user -> access : stores it
user -> refresh : httpOnly cookie
refresh -> auth : rotate
auth -> mail : reset link
mail -> user