participant A as Hasura Auth
participant E as SMTP server
participant F as Frontend
U->>+A: HTTP POST /user/password/reset
Note right of U: new email
A-)E: Send verification email
A->>-U: HTTP POST OK (no data)
opt Use email redirect link
Note right of U: Follow email link
Note left of A: Refresh token + access token
opt Use ticket to customize reset flow (e.g. mobile)
U->>+F: Deeplink w/ ticket
Note left of F: User enters new password
F->>+A: HTTP POST /user/password
Note right of A: Set new password with ticket
A->>+F: HTTP POST OK (no data)
Note right of U: User notified or logged in