Hydrak sdk examples are seems to be outdated. No '...
# talk-hydra
p
Hydrak sdk examples are seems to be outdated. No 'PublicApi' and 'AdminApi' in \@ory/hydra-client@v2.0.1. Is there any guide for migration from v1 to v2?
c
As far as I can see, the two apis are now combined into one OAuth2Api. Most of the flows are the same, but the
oauth2_token_response
is now called
o_auth2_token_exchange
. There is currently a bug regarding the type of scope field the SDK expects to receive from hydra. It is going to be fixed soon, until then you can use an older version or update your local copy of SDK to work. See https://github.com/ory/hydra/pull/3337 for more details