Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

passport-okta-oauth20

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-okta-oauth20 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

package.json
{
"name": "passport-okta-oauth20",
"version": "1.0.0",
"description": "An Okta OAuth 2.0 provider for Passport",
"version": "1.0.1",
"description": "An Okta OAuth 2.0 Strategy for Passport with native TypeScript support",
"main": "dist/src/index.js",
"engines" : { "node" : ">=12.0.0" },
"scripts": {
"test": "yarn jest ./src",
"test": "jest ./src/**/*",
"test-transpiled": "jest ./dist/**/*",
"test-watch": "yarn test --watch",
"lint": "eslint . --ext .ts",
"test-watch": "yarn test --watch",
"build": "tsc --build",
"prepack": "yarn build"
"prepack": "yarn lint && yarn test && yarn build && yarn test-transpiled"
},

@@ -25,3 +27,3 @@ "repository": {

],
"author": "Antoine Jaussoin",
"author": "Antoine Jaussoin <a@jaussoin.com> (https://www.jaussoin.com)",
"license": "MIT",

@@ -32,2 +34,3 @@ "bugs": {

"homepage": "https://github.com/antoinejaussoin/passport-okta-oauth20#readme",
"files": ["dist/src/*.ts", "dist/src/*.js", "dist/src/*.map"],
"dependencies": {

@@ -34,0 +37,0 @@ "node-fetch": "^2.6.1",

44

README.md
# passport-okta-oauth20
![GitHub package.json version](https://img.shields.io/github/package-json/v/antoinejaussoin/passport-okta-oauth20)
![Licence](https://img.shields.io/npm/l/passport-okta-oauth20)
![Code Quality](https://img.shields.io/npms-io/quality-score/passport-okta-oauth20)
![Maintenance](https://img.shields.io/npms-io/maintenance-score/passport-okta-oauth20)
[Okta](https://www.okta.com) OAuth 2.0 provider for [Passport](https://www.passportjs.org) with TypeScript support.

@@ -11,6 +16,5 @@

- Import: `import { Strategy as OktaStrategy } from 'passport-okta-oauth20';`
- Profit:
```tsx
import { Strategy as OktaStrategy } from 'passport-okta-oauth20';
```tsx
passport.use(

@@ -26,2 +30,3 @@ new OktaStrategy(

function (accessToken, refreshToken, profile, done) {
// Do something with the profile
return done(null, profile);

@@ -35,9 +40,2 @@ }

You can access to the profile type by importing it:
- `import { OktaProfile } from 'passport-okta-oauth20'`
The profile given by the strategy callback is of course typed.
Example profile:
```js

@@ -61,2 +59,28 @@ {

## TypeScript
If you are using TypeScript, you can import the following types:
`import { OktaProfile, OktaStrategyOptions } from 'passport-okta-oauth20'`
## Change Log
### Version 1.0.1
- Testing on Node 12, 14 and 16
- Replace `.npmignore` by a whitelist (`files`) in `package.json`
- Restrict to Node >= 12 (but will probably work with older version.)
- Testing both the original TypeScript code and the transpiled JS code
### Version 1.0.0
- Functional parity with [passport-okta-oauth](https://github.com/techstars-archive/passport-okta-oauth)
- Full TypeScript support
- Simplified logic and up-to-date dependencies
- Very lightweight NPM package (6.2 kB)
- Test coverage
- Linting
## Prior art

@@ -63,0 +87,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc