Skip to content

Commit

Permalink
docs: update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Oct 18, 2022
1 parent 86e7dc8 commit c23615c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/docs/examples/user-trophy-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
async function main() {
// 1. Authenticate and become authorized with PSN.
// See the Authenticating Manually docs for how to get your NPSSO.
const accessCode = await exchangeNpssoForCode(npsso);
const accessCode = await exchangeNpssoForCode(process.env["NPSSO"]);
const authorization = await exchangeCodeForAccessToken(accessCode);

// 2. Get the user's `accountId` from the username.
Expand Down Expand Up @@ -124,4 +124,6 @@ const rarityMap: Record<TrophyRarity, string> = {
[TrophyRarity.Rare]: "Rare",
[TrophyRarity.Common]: "Common"
};

main();
```

1 comment on commit c23615c

@vercel
Copy link

@vercel vercel bot commented on c23615c Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.