You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A sample Chrome extension that demonstrates how to integrate Logto in a Chrome extension.
4
+
5
+
This is also the final result of this blog post: [Monetize your Chrome extension with OpenID Connect (OAuth 2.0) authentication](https://blog.logto.io/monetize-chrome-extension-with-oidc-auth).
6
+
7
+
## Get started
8
+
9
+
Ensure you have the following installed:
10
+
11
+
- Node.js: https://nodejs.org/
12
+
- PNPM: https://pnpm.io/ (Other package managers may work, but this sample only tests with PNPM)
13
+
14
+
To test this sample, follow these steps:
15
+
16
+
1. Clone this repository.
17
+
2. In this directory, run `pnpm i`.
18
+
3. Create a `.env` file in this directory with the following content:
19
+
```env
20
+
LOGTO_ENDPOINT=(replace with your Logto endpoint)
21
+
LOGTO_APP_ID=(replace with your Logto app ID)
22
+
```
23
+
1. Run `pnpm build`.
24
+
2. Open Chrome and navigate to `chrome://extensions`, then enable Developer mode.
25
+
3. Click on "Load unpacked" and select the `dist` directory in this repository.
0 commit comments