Authentication Flow For authentication, we are using Auth0.
Betwise Companion The companion app will be a native desktop app that is installed on the user's machine. This app will be responsible for collecting poker hands data from locally installed poker platforms apps.
Authentication Flow User User Companion App Companion App Auth0 Auth0 API API Initial Authentication Flow Open Companion App Redirect to Auth0 for Login Display Login Page Enter Credentials (Username/Password) alt [Successful Authentication] Redirect with Authorization Code (via Callback URL) Exchange Authorization Code for Access Token Access Token Send Access Token in Request Validate Token Token Validation Result (Valid) Response (Data/Resource) [Authentication Failed] Redirect with Error (via Callback URL) Display Error Message Token Renewal via Silent Authentication Request Token (Silent Authentication) Issue New Access Token (if session valid) Send New Access Token Validate Token Token Validation Result (Valid) Response (Data/Resource) Logout or Session Expiry Log Out Clear Token from Secure Storage Last modified: 23 November 2024