Basic Workflow
flowchart TD
A(["š Start: App Launches SDK"]) --> A1[app calls initialize]
A1 --> A2[SDK emits getUser]
A2 --> A3[app call setUser]
A3 --> A4[sdk emits getDeviceName]
A4 --> A5[app calls setDeviceName]
A5 --> ActivationFlow
subgraph ActivationFlow [Activation Flow]
H["š¢SDK emits getActivationCode/getEmailOtp/getSmsOtp"]
H --> J["āļø App collects OTP and calls setActivationCode/setEmailOtp/setSmsOtp"]
J --> M{"ā Are secret questions configured?"}
M -- "ā
Yes" --> N["š§ SDK emits onSelectSecretQuestionAnswer"]
N --> O["š£ļø App shows questions, collects answer, calls setSecretQuestionAnswer"]
M -- "ā No" --> P["āļø Skip secret questions"]
O --> Q["š SDK emits getUserConsentForLDA"]
P --> Q
Q --> R["ā
User provides LDA consent; app calls setUserConsentForLDA"]
R --> |consent = true| S[SDK initiates LDA authentication]
R --> |consent = false| S1[š¢sdk emits getPassword]
S1 --> S2[āļøapp calls setPassword to set up password]
S -->|devide does not support LDA| S1
S -->|LDA auth successful| W["š Activation completed"]
end
W --> W1[sdk calls getDeviceToken]
W1 --> X[app calls setDeviceToken]
X --> Y[sdk emits onUserLoggedIn]
S --> |LDA auth fails| S1
S2 --> W
Updated 9 months ago
