Skip to content

Sequence Diagram

kimsungwon edited this page Apr 9, 2023 · 12 revisions

Sign-in

sequenceDiagram
Client ->> Server: Request sign-in with ID token
activate Server

Server ->> Firebase: Verify ID token
activate Firebase
Firebase ->> Server: Return result of ID token's verification
deactivate Firebase

	alt is verified
		Server ->> Server: Issue user token
		Server ->> Client: Set user token as cookie
	else is not verified
		Server ->> Client: 401 UNAUTHORIZED
	end
deactivate Server
Loading

Sign-out

sequenceDiagram
Client ->> Server: Request sign-out
activate Server
Server ->> Client: Clear cookie
deactivate Server
Loading
Clone this wiki locally