Gathering detailed insights and metrics for oauth2orize-koa-facebook
Gathering detailed insights and metrics for oauth2orize-koa-facebook
Gathering detailed insights and metrics for oauth2orize-koa-facebook
Gathering detailed insights and metrics for oauth2orize-koa-facebook
Facebook token exchange middleware for OAuth2 server toolkit `oauth2orize`.
npm install oauth2orize-koa-facebook
Typescript
Module System
Min. Node Version
Node Version
NPM Version
62.5
Supply Chain
74.3
Quality
70.1
Maintenance
50
Vulnerability
97.9
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
11 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Nov 08, 2022
Latest Version
0.0.2
Package Id
oauth2orize-koa-facebook@0.0.2
Size
4.48 kB
NPM Version
5.5.1
Node Version
8.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This is a koa port of oauth2orize-facebook.
1npm i oauth2orize-koa-facebook -S
Before using this package, you should enable the 'Require App Secret' option in the advanced settings of your Facebook app. You also must provide the app secret by exporting it
1export FB_APP_SECRET={your Facebook app secret}
or by adding FB_APP_SECRET={your Facebook app secret} to your .env file.
Then, you can have fun
1var oauth2orize = require('oauth2orize-koa'); 2var oauth2orizeFacebook = require('oauth2orize-koa-facebook'); 3 4var server = oauth2orize.createServer(); 5 6server.exchange(oauth2orizeFacebook.exchange.facebook(['email', 'first_name', 'last_name'], function (client, profile) { 7 // Get access token from client and Facebook profile information. 8 var accessToken = 'access token'; 9 10 // Refresh token could be returned if it is supported by your OAuth2 server. 11 // If not available, just pass `null` as argument. 12 var refreshToken = 'optional refresh token'; 13 14 // Additional parameters to return in response. Pass `null` if not available. 15 var params = { 16 'welcome_to': 'our OAuth2 server', 17 'glad_to': 'meet you' 18 }; 19 20 return [accessToken, refreshToken, params]; 21 // Or just `return accessToken` is enough. 22}));
MIT licensed.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
69 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More