Gathering detailed insights and metrics for @types/passport-google-oauth
Gathering detailed insights and metrics for @types/passport-google-oauth
Gathering detailed insights and metrics for @types/passport-google-oauth
Gathering detailed insights and metrics for @types/passport-google-oauth
The repository for high quality TypeScript type definitions.
npm install @types/passport-google-oauth
Typescript
Module System
88.1
Supply Chain
99.4
Quality
76
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
3,919,766
Last Day
381
Last Week
10,805
Last Month
47,227
Last Year
559,590
NOASSERTION License
49,709 Stars
89,364 Commits
30,382 Forks
640 Watchers
6 Branches
9,955 Contributors
Updated on May 11, 2025
Latest Version
1.0.45
Package Id
@types/passport-google-oauth@1.0.45
Unpacked Size
7.38 kB
Size
2.11 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
-28.1%
381
Compared to previous day
Last Week
1.8%
10,805
Compared to previous week
Last Month
-22%
47,227
Compared to previous month
Last Year
-34.5%
559,590
Compared to previous year
2
npm install --save @types/passport-google-oauth
This package contains type definitions for passport-google-oauth (https://github.com/jaredhanson/passport-google-oauth).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-google-oauth.
1/// <reference types="passport"/> 2 3import passport = require("passport"); 4import express = require("express"); 5 6interface Profile extends passport.Profile { 7 gender: string; 8 _raw: string; 9 _json: any; 10} 11 12interface IOAuthStrategyOption { 13 consumerKey: string; 14 consumerSecret: string; 15 callbackURL: string; 16 requestTokenURL?: string | undefined; 17 accessTokenURL?: string | undefined; 18 userAuthorizationURL?: string | undefined; 19 sessionKey?: string | undefined; 20} 21 22interface VerifyOptions { 23 message: string; 24} 25 26interface VerifyFunction { 27 (error: any, user?: any, msg?: VerifyOptions): void; 28} 29 30declare class OAuthStrategy implements passport.Strategy { 31 constructor( 32 options: IOAuthStrategyOption, 33 verify: ( 34 accessToken: string, 35 refreshToken: string, 36 profile: Profile, 37 done: VerifyFunction, 38 ) => void, 39 ); 40 name: string; 41 authenticate(req: express.Request, options?: Object): void; 42} 43 44interface IOAuth2StrategyOption { 45 clientID: string; 46 clientSecret: string; 47 callbackURL: string; 48 authorizationURL?: string | undefined; 49 tokenURL?: string | undefined; 50 userProfileURL?: string | undefined; 51 accessType?: string | undefined; 52 approval_prompt?: string | undefined; 53 prompt?: string | undefined; 54 loginHint?: string | undefined; 55 userID?: string | undefined; 56 hostedDomain?: string | undefined; 57 display?: string | undefined; 58 requestVisibleActions?: string | undefined; 59 openIDRealm?: string | undefined; 60} 61 62interface IOAuth2StrategyOptionWithRequest extends IOAuth2StrategyOption { 63 passReqToCallback: boolean; 64} 65 66declare class OAuth2Strategy implements passport.Strategy { 67 constructor( 68 options: IOAuth2StrategyOption, 69 verify: ( 70 accessToken: string, 71 refreshToken: string, 72 profile: Profile, 73 done: VerifyFunction, 74 ) => void, 75 ); 76 constructor( 77 options: IOAuth2StrategyOptionWithRequest, 78 verify: ( 79 req: express.Request, 80 accessToken: string, 81 refreshToken: string, 82 profile: Profile, 83 done: VerifyFunction, 84 ) => void, 85 ); 86 87 name: string; 88 authenticate: (req: express.Request, options?: Object) => void; 89} 90
These definitions were written by James Roland Cabresos.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-05-05
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