brianddk / pyexch

REST based Python Exchange API
Apache License 2.0
0 stars 2 forks source link

[api-v2-bug] The V2 API returns oauth_v2 as method with CDP (v3) keys #17

Closed brianddk closed 6 months ago

brianddk commented 6 months ago

When accessing the SIWC (v2) api using CDP (v3) keys, the /v2/user/auth endpoint returns

{
  "data": {
    "method": "oauth_v2",
    "scopes": [ "redacted" ]
  }
}

which is obviously the wrong method. There should be a return value for "v3_api" or "CDP_key" or something. This may be why transaction endpoints are requiring the OAuth2 CB-2FA-Token field even with OAuth2 is not used.

brianddk commented 6 months ago

Fixed via Coinbase Support