sequence-diagram-1-click-signup-sdk
sequenceDiagram
box Customer
participant S as Server
participant C as Client
end
participant V as Verified
actor U as User
note left of S: 1. Create Session Key
C ->>+ S: Call server to create session key
S ->>+ V: Call POST /client/1-click with API key
V -->>- S: Return sessionKey
S -->>- C: Return sessionKey
note left of S: 2. Initialize SDK
C ->> C: Create VerifiedClientSDK instance
C ->> C: Call show() method
rect rgb(200,200,200,0.85)
note left of V: 3. Verify User <br/> (handled by Verified)
V ->> U: Verify user, source data, <br/> and have user confirm data
V ->> C: Return result
end
note left of S: 3. Handle Response
alt Result: value is USER_SHARED_CREDENTIALS
C ->>+ S: Call server with identityUuid
S ->>+ V: Call GET /1-click with identityUuid
V -->>- S: Return data
S -->>- C: Return success
else Result: value is USER_OPTED_OUT
C ->> U: Take user to manual signup
else Error
C ->> C: Restart SDK (go back to step 1)
end