Skip to content

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Jan 9, 2025
1 parent e070603 commit cb98843
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion examples/client/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ Then visit `http://localhost:5173` in your browser.
It needs the OpenAuth server running at `http://localhost:3000`. Start it from the `examples/` dir using.

```bash
bun run --hot athorizer/bun/issuer.ts
bun run --hot issuer/bun/issuer.ts
```

You might have to install some workspace packages first, run this in the root:

```bash
$ bun install
$ cd packages/openauth
$ bun run build
```

And optionally a JWT API running to get the user subject on `http://localhost:3001`. Start it using.
Expand Down
1 change: 0 additions & 1 deletion examples/client/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function App() {
setIsAuthenticating(false)

if (token) {
accessToken.current = token
await user()
}
}
Expand Down

0 comments on commit cb98843

Please sign in to comment.