From d56412f180ff6154f9f7099dff225b4cf08fe73b Mon Sep 17 00:00:00 2001 From: Lucian Hymer Date: Fri, 24 Jan 2025 14:15:46 -0700 Subject: [PATCH] chore(platforms): using new coinbase oauth endpoints --- platforms/src/Coinbase/App-Bindings.tsx | 22 +- platforms/src/Coinbase/Providers/coinbase.ts | 2 +- .../src/Coinbase/__tests__/coinbase.test.ts | 10 +- yarn.lock | 356 ++++++++++-------- 4 files changed, 216 insertions(+), 174 deletions(-) diff --git a/platforms/src/Coinbase/App-Bindings.tsx b/platforms/src/Coinbase/App-Bindings.tsx index 0d54b24c6e..a25ba84dc2 100644 --- a/platforms/src/Coinbase/App-Bindings.tsx +++ b/platforms/src/Coinbase/App-Bindings.tsx @@ -18,10 +18,13 @@ export class CoinbasePlatform extends Platform {

- Obtain the Coinbase Stamp by completing the following 2 steps to prove your Coinbase Verified ID and Coinbase account: + Obtain the Coinbase Stamp by completing the following 2 steps to prove your Coinbase Verified ID and Coinbase + account:

- Step 1: Verify your Coinbase ID with the same address that you're currently using with this Passport. + Step 1:{" "} + Verify your Coinbase ID with the same + address that you're currently using with this Passport.

Step 2: Click "Verify" below to sign into your Coinbase account. @@ -29,8 +32,13 @@ export class CoinbasePlatform extends Platform {
Important considerations: ), @@ -68,9 +76,9 @@ export class CoinbasePlatform extends Platform { } async getOAuthUrl(state: string): Promise { - const coinbasebUrl = await Promise.resolve( - `https://www.coinbase.com/oauth/authorize?response_type=code&client_id=${this.clientId}&redirect_uri=${this.redirectUri}&state=${state}` + const coinbaseUrl = await Promise.resolve( + `https://login.coinbase.com/oauth2/auth?response_type=code&client_id=${this.clientId}&redirect_uri=${this.redirectUri}&state=${state}` ); - return coinbasebUrl; + return coinbaseUrl; } } diff --git a/platforms/src/Coinbase/Providers/coinbase.ts b/platforms/src/Coinbase/Providers/coinbase.ts index 33f6bf046f..4bb16860bb 100644 --- a/platforms/src/Coinbase/Providers/coinbase.ts +++ b/platforms/src/Coinbase/Providers/coinbase.ts @@ -65,7 +65,7 @@ export const requestAccessToken = async (code: string): Promise