ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
139 stars 86 forks source link

how to get userinfo by sdk? #257

Closed bulolo closed 1 year ago

bulolo commented 1 year ago

Preflight checklist

Describe the bug

image

Reproducing the bug

use "@ory/hydra-client": "^2.0.2", sdk, how to get userinfo

Relevant log output

No response

Relevant configuration

No response

Version

2.0.2

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

jonas-jonas commented 1 year ago

Thanks for the question. That method is available on the OidcApi class from the @ory/hydra-client package:

import { OidcApi } from "@ory/hydra-client";

// ...

new OidcApi().getOidcUserInfo();