Skip to content

Commit

Permalink
Update documentation for UserInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Dec 12, 2023
1 parent 2229fad commit c2a1911
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/userinfo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export class UserInfoClient extends BaseAPI {
* <a href="https://auth0.com/docs/auth-api#!#get--userinfo">API Docs</a>.
* </caption>
*
* const userInfo = await auth0.users.getUserInfo(accessToken);
* const userInfoClient = new UserInfoClient({
* domain: '...'
* });
* const userInfo = await userInfoClient.getUserInfo(accessToken);
*/
async getUserInfo(
accessToken: string,
Expand Down

0 comments on commit c2a1911

Please sign in to comment.