Skip to content

Update OAuth2 redirect URIs to use constants#2

Open
jose4000 wants to merge 1 commit into
mkaaru:masterfrom
jose4000:patch-2
Open

Update OAuth2 redirect URIs to use constants#2
jose4000 wants to merge 1 commit into
mkaaru:masterfrom
jose4000:patch-2

Conversation

@jose4000

@jose4000 jose4000 commented Jan 6, 2026

Copy link
Copy Markdown

i did some authentication changes

@github-actions

github-actions Bot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor
Name Result
Build status Failed ❌
Action URL Visit Action

tradingwizard pushed a commit to tradingwizard/DERIV-SITE-TEST that referenced this pull request Jun 17, 2026
… errors

Task: After login users saw a broken/static dashboard with no demo/real
accounts and could not trade. Root cause: the dashboard-side authorize()
(OTP -> OTP-authenticated WS connect) hung forever, and legacy VR/CR loginid
logic no longer matches Deriv's NEW platform account shapes.

Changes:
- deriv-ws-adapter.ts: connect() now rejects on close-before-open and after a
  15s timeout (was hanging indefinitely); added connectWithOtpRetry() which
  fetches a FRESH single-use OTP per attempt with backoff; authorize() uses it.
- App.tsx: replaced legacy startsWith('VR')/'CR') demo/real selection with
  account_type-based isVirtual logic (new IDs like DOT90004580); removed now
  unused imports.
- callback-page.tsx: clientAccounts entries now persist account_type.
- CoreStoreProvider.tsx: added effect that surfaces a plain-language, retryable
  error ("Try again" reload) when a logged-in user's authorization finishes
  without success; clears on success. Guarded against logged-out false positives.
- server/index.js: added status/error-body diagnostics for accounts + OTP
  proxies (no tokens logged).

Verification: dev server compiles all changed files; /dashboard renders without
crash. Architect review passed (no severe issues). Live OAuth (demo+real) login
and trade path cannot be tested in this environment — covered by follow-up
Task mkaaru#2. Logged-out public market-data protocol errors are out of scope (Task mkaaru#3).

Note: pre-existing tsc errors in CoreStoreProvider (api_base.api possibly null)
and an unused `bearer` field are unrelated to this change and not introduced here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant