Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 675 Bytes

anonymous-users.md

File metadata and controls

32 lines (28 loc) · 675 Bytes

Anonymous Users

Sign-in anonymously

sequenceDiagram
	autonumber
	actor U as User
	participant A as Hasura Auth
	U->>+A: HTTP POST /signin/anonymous
	A->>A: Create anonymous user
	A->>-U: HTTP OK response
	Note left of A: Refresh token + access token
Loading

Deanonymisation

sequenceDiagram
	autonumber
	actor U as User
	participant A as Hasura Auth
	U-->A: Sign in anonymously
	U->>+A: HTTP POST /user/deanonymize
	A->>A: Deanonymise user
	alt Sign-in method is email+password
		Note over U,A: Same pathway as email+password sign-up
	else Sign-in method is passwordless
		Note over U,A: Same pathway as passwordless email
	end
	deactivate A
Loading