Skip to content

Latest commit

 

History

History

chrome-extension-sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Logto Chrome extension sample

A sample Chrome extension that demonstrates how to integrate Logto in a Chrome extension.

This is also the final result of this blog post: Monetize your Chrome extension with OpenID Connect (OAuth 2.0) authentication.

Get started

Ensure you have the following installed:

To test this sample, follow these steps:

  1. Clone this repository.
  2. In this directory, run pnpm i.
  3. Create a .env file in this directory with the following content:
LOGTO_ENDPOINT=(replace with your Logto endpoint)
LOGTO_APP_ID=(replace with your Logto app ID)
  1. Run pnpm build.
  2. Open Chrome and navigate to chrome://extensions, then enable Developer mode.
  3. Click on "Load unpacked" and select the dist directory in this repository.

Resources

Website Docs Discord