-
Notifications
You must be signed in to change notification settings - Fork 3
Sequence Diagram
kimsungwon edited this page Apr 9, 2023
·
12 revisions
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
sequenceDiagram
Client ->> Server: Request sign-out
activate Server
Server ->> Client: Clear cookie
deactivate Server