# chrome-ext-oauth-sdk

> OAuth SDK for Chrome Extensions

Latest version **0.0.5** (published 2020-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install chrome-ext-oauth-sdk
pnpm add chrome-ext-oauth-sdk
yarn add chrome-ext-oauth-sdk
bun add chrome-ext-oauth-sdk
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2020-09-02 |
| First published | 2020-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | otiai10 |
| Maintainers | otiai10 |
| Keywords | Chrome, Extension, OAuth, handshake, sdk |

## Links

- npm: https://www.npmjs.com/package/chrome-ext-oauth-sdk
- Repository: https://github.com/otiai10/ChromeExtOAuthSDK
- Homepage: https://github.com/otiai10/ChromeExtOAuthSDK#readme
- Issues: https://github.com/otiai10/ChromeExtOAuthSDK/issues
- npm.io page: https://npm.io/package/chrome-ext-oauth-sdk

## Dependencies (1)

- [oauthsimple](https://npm.io/package/oauthsimple.md) 0.0.1

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2020-09-02
- 0.0.4 — 2020-09-01
- 0.0.3 — 2020-08-31
- 0.0.2 — 2020-08-31
- 0.0.1 — 2020-08-31

## README

# Chrome Extension OAuth SDK

[![](https://img.shields.io/npm/v/chrome-ext-oauth-sdk)](https://www.npmjs.com/package/chrome-ext-oauth-sdk)

To implement OAuth flow on your Chrome Extension.

# Why?

// TODO: Write something

# How to use

```js
// background.js
import { TwitterOAuth } from "chrome-ext-oauth-sdk";
window.twitter = new TwitterOAuth(yourConsumerConfig);
```

```js
// Your callback page JavaScript
import { ProxyPage } from "chrome-ext-oauth-sdk";
const page = new ProxyPage();
window.onload = () => page.onload();
// then, this page will handle everything automatically
// and finally give token to the opener of this page.
```

```js
// Let's open the page and trigger OAuth flow.
import { ProxyPage } from "chrome-ext-oauth-sdk";
const token = await ProxyPage.open(yourCallbackPageURL, "twitter");
// { access_token: string, access_token_secret: string }
```

---
_Source: https://npm.io/package/chrome-ext-oauth-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
