Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix broken NextJS example link
  • Loading branch information
mnemitz authored Feb 12, 2025
1 parent f550d9e commit e287b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/flow-client-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ npm i @speechmatics/flow-client-react

See our documentation about generating JWTs (temporary keys): https://docs.speechmatics.com/introduction/authentication#temporary-keys

An example credentials fetching flow can be found in the [NextJS example](/examples/nextjs/src/lib/fetch-credentials.ts).
An example credentials fetching flow can be found in the [NextJS example](/examples/nextjs-flow/app/actions.ts#L11). This uses a [server action](https://nextjs.org/docs/13/app/api-reference/functions/server-actions) which calls the [`@speechmatics/auth`](https://www.npmjs.com/package/@speechmatics/auth) package to get a temporary key to access the API from the browser.

```typescript
await startConversation(jwt, {
Expand Down Expand Up @@ -86,4 +86,4 @@ npm i @speechmatics/flow-client-react
// How you handle this depends on your environment.
myPlayAudioFunction(audio.data);
})
```
```

0 comments on commit e287b16

Please sign in to comment.