open-index/open-npm huggingface dataset:
npm package: @openpass/openpass-js-sdk
Description: OpenPass SSO JavaScript SDK
Author: The Trade Desk
Latest version: 4.13.0-pre-release

# OpenPass JavaScript SDK

[![License](https://img.shields.io/:license-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT)
![Build Status](https://github.com/openpass-sso/openpass-js-sdk/actions/workflows/release.yml/badge.svg)

The OpenPass JavaScript SDK makes it easy to integrate OpenPass directly on your website.

# Getting Started
To get started using the OpenPass JavaScript Sdk, see the [JavaScript SDK Guide](https://partner.thetradedesk.com/v3/portal/openpass/doc/OpenPassSDKJSOverview).

## Links
* 📚 [OpenPass Documentation](https://partner.thetradedesk.com/v3/portal/openpass/doc/OpenPassGetStarted)
* 🚀 [JavaScript SDK Guide](https://partner.thetradedesk.com/v3/portal/openpass/doc/OpenPassSDKJSOverview)
* 💻 [JavaScript SDK API Reference](https://partner.thetradedesk.com/v3/portal/openpass/doc/OpenPassSDKJSAPIReference)


# Contribute

## Links
* [Local Development](./docs/local-development.md)
* [How to release](./docs/releasing.md)
npm package: @openpass/passport-openpass
Description: OpenPass authentication strategy for Passport using OpenID Connect.
Author: The Trade Desk
Latest version: 1.0.1

# passport-openpass

[Passport](http://passportjs.org/) strategy for authenticating with [OpenPass](https://myopenpass.com/)
using [OpenID Connect](https://www.passportjs.org/features/openid-connect/).

## Install

```sh
$ npm install @openpass/passport-openpass
```

## Usage

#### Register Application

The OpenPass strategy authenticates users using their OpenPass account.  Before your
application can make use of OpenPass's authentication system, you must first
register your app with OpenPass.  Once registered, a client ID and secret will be
issued which are used by OpenPass to identify your app.

#### Configure Strategy

The OpenPass authentication strategy authenticates users using OpenPass. The strategy requires a verify callback, which accepts these credentials and calls done providing a user profileuser, as well as options specifying a client ID, client secret, and callback URL.

```js
var OpenPassStrategy = require('passport-openpass');

passport.use(new OpenPassStrategy({
    clientID: process.env['OPENPASS_CLIENT_ID'],
    clientSecret: process.env['OPENPASS_CLIENT_SECRET'],
    callbackURL: 'https://www.example.com/oauth2/redirect/openpass'
  },
  function verify(iss, profile, context, idToken, accessToken, refreshToken, done) {
    console.log(profile.id);
    // 
    });
  }
));
```

#### Define Routes

Two routes are needed in order to allow users to log in with their OpenPass
account.  The first route redirects the user to the OpenPass, where they will
authenticate:

```js
app.get('/login/openpass', passport.authenticate('openpass'));
```

The second route processes the authentication response and logs the user in,
after OpenPass redirects the user back to the app:

```js
app.get('/callback',
  passport.authenticate('openpass', { failureRedirect: '/login', failureMessage: true }),
  function(req, res) {
    res.redirect('/');
  });
```

## Examples

For a complete example, refer to the [login example](https://github.com/openpass-sso/passport-openpass/tree/master/example).

## Tests

```shell
$ npm install --dev
$ make test
```

## Credits

  - [Jared Hanson](http://github.com/jaredhanson)

## License

[The MIT License](http://opensource.org/licenses/MIT)
npm package: @openpassport/contracts
Description: Contracts for OpenPassport.
Author: motemotech
Latest version: 0.0.8

# OpenPassport Contracts

Contracts for OpenPassport.

Try running some of the following tasks:

```shell
npx hardhat help
npx hardhat test
GAS_REPORT=true npx hardhat test
npx hardhat node
npx hardhat run scripts/mint.ts
npx hardhat ignition deploy ignition/modules/Deploy_All.ts --network <network>
```

## When you run test
If you want to test in your local environment

```shell
cd ../circuits
./scripts/build_prove_circuits.sh
cd ../contracts
yarn run test:local
```

If you want to test in production environment
```shell
cd ../circuits
./scripts/download_circuits_from_aws.sh
cd ../contracts
yarn run test:prod
```

If you want to generate your own proof or when you update circuits, pls delete json files in test/integrationTest

## Deployed Addresses
These contracts are deployed on Sepolia.
| Contract Name | Address |
| --- | --- |
| GenericVerifier | 0x796E2c4e66E3984641baEDa77b267CcAD76D99bE |
| OpenPassportVerifier | 0x493f59620e9587dace89DB92CAB36eD96b1C7907 |
| Verifier_prove_rsa_65537_sha1 | 0x272956144fc77b6dFb7161230426a1823339E147 |
| Verifier_prove_rsa_65537_sha256 | 0xd89728C1211a8f239dA74B48d562c464Ee0B31fa |
| Verifier_prove_rsapss_65537_sha256 | 0xF77Be82318F11392Efb5F1062D954911d6086537 |
| Verifier_dsc_rsa_65537_sha1_4096 | 0x0F94D82657a3622E96Ff95008b61F903CF83D314 |
| Verifier_dsc_rsa_65537_sha256_4096 | 0x63792806a0384D5a51EAd3A6d278A602da2F288e |
| Verifier_dsc_rsapss_65537_sha256_4096 | 0x2FAA6D634Fe645333561F470F2507Ede45b0BE9c |
npm package: @openpassport/zk-kit-utils
Description: Essential zero-knowledge utility library for JavaScript developers.
Latest version: 0.0.1

<p align="center">
    <h1 align="center">
        Utils
    </h1>
    <p align="center">Essential zero-knowledge utility library for JavaScript developers.</p>
</p>

<p align="center">
    <a href="https://github.com/privacy-scaling-explorations/zk-kit">
        <img src="https://img.shields.io/badge/project-zk--kit-blue.svg?style=flat-square">
    </a>
    <a href="https://github.com/privacy-scaling-explorations/zk-kit/tree/main/packages/utils/LICENSE">
        <img alt="NPM license" src="https://img.shields.io/npm/l/%40zk-kit%2Futils?style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@zk-kit/utils">
        <img alt="NPM version" src="https://img.shields.io/npm/v/@zk-kit/utils?style=flat-square" />
    </a>
    <a href="https://npmjs.org/package/@zk-kit/utils">
        <img alt="Downloads" src="https://img.shields.io/npm/dm/@zk-kit/utils.svg?style=flat-square" />
    </a>
    <a href="https://bundlephobia.com/package/@zk-kit/utils">
        <img alt="npm bundle size (scoped)" src="https://img.shields.io/bundlephobia/minzip/@zk-kit/utils" />
    </a>
    <a href="https://eslint.org/">
        <img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
    </a>
    <a href="https://prettier.io/">
        <img alt="Code style prettier" src="https://img.shields.io/badge/code%20style-prettier-f8bc45?style=flat-square&logo=prettier" />
    </a>
</p>

<div align="center">
    <h4>
        <a href="https://appliedzkp.org/discord">
            🗣️ Chat &amp; Support
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://zkkit.pse.dev/modules/_zk_kit_utils.html">
            📘 Docs
        </a>
    </h4>
</div>

> [!NOTE]  
> This library has been audited as part of the Semaphore V4 PSE audit: https://semaphore.pse.dev/Semaphore_4.0.0_Audit.pdf.

## 🛠 Install

### npm or yarn

Install the `@zk-kit/utils` package and its peer dependencies with npm:

```bash
npm i @zk-kit/utils
```

or yarn:

```bash
yarn add @zk-kit/utils
```

### CDN

You can also load it using a `script` tag using [unpkg](https://unpkg.com/):

```html
<script src="https://unpkg.com/@zk-kit/utils"></script>
```

or [JSDelivr](https://www.jsdelivr.com/):

```html
<script src="https://cdn.jsdelivr.net/npm/@zk-kit/utils"></script>
```

## 📜 Usage

```typescript
// You can import modules from the main bundle.
import { errorHandlers, typeChecks } from "@zk-kit/utils"

// Or by using conditional exports.
import { requireNumber } from "@zk-kit/utils/error-handlers"
import { isNumber } from "@zk-kit/utils/type-checks"
```

For more information on the functions provided by `@zk-kit/utils`, please refer to the [documentation](https://zkkit.pse.dev/modules/_zk_kit_utils.html).
npm package: @openpatch/patches
Description: OpenPatch Design System
Author: Mike Barkmin
Latest version: 6.0.1

<div align="center">

[![Patches Logo](.storybook/public/patches_title.svg)](https://github.com/openpatch/patches)

[![Stars](https://img.shields.io/github/stars/openpatch/patches?style=social)](https://github.com/openpatch/patches/) [![Version](https://img.shields.io/npm/v/@openpatch/patches)](https://www.npmjs.com/package/@openpatch/patches) [![Coverage](https://img.shields.io/codecov/c/github/openpatch/patches)](https://codecov.io/gh/openpatch/patches) [![License](https://img.shields.io/github/license/openpatch/patches)](https://github.com/openpatch/patches/blob/main/LICENSE) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

</div>

# Patches

Patches is the Design System (aka. Component Library) for OpenPatch.

## Getting Started

Take a look at the [documentation](https://openpatch.github.io/patches/?path=/docs/introduction-getting-started--page).
If you plan to use [NextJS](https://nextjs.org) for your project you can use the [patches-nextjs-starter](https://github.com/openpatch/patches-nextjs-starter) by running `npx create-next-app -e https://github.com/openpatch/patches-nextjs-starter`.

## Changelog

Patches follows semantic versioning. In short, this means we use patch
versions for bug fixes, minor versions for new features, and major versions
for breaking changes. You can read [our changelog on
GitHub](https://github.com/openpatch/patches/releases).

## Related Projects

- [**Circuit UI**](https://github.com/sumup-oss/circuit-ui/) the project structure is inspired by this design system
- [**Chakra UI**](https://chakra-ui.com) some components are inspired by this design system