Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/passport-google-oauth2
Advanced tools
TypeScript definitions for passport-google-oauth2
npm install --save @types/passport-google-oauth2
This package contains type definitions for passport-google-oauth2 (https://github.com/mstade/passport-google-oauth2).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-google-oauth2.
import { Request } from "express";
export interface StrategyOptions {
clientID: string;
clientSecret: string;
callbackURL: string;
passReqToCallback?: true | undefined;
scope?: string[] | string | undefined;
proxy?: boolean | undefined;
}
export interface StrategyOptionsWithRequest {
clientID: string;
clientSecret: string;
callbackURL: string;
passReqToCallback: true;
scope?: string[] | string | undefined;
}
export interface VerifyOptions {
message: string;
}
export type VerifyCallback = (error: any, user?: any, options?: VerifyOptions) => void;
export type VerifyFunctionWithRequestAndParams = (
req: Request,
accessToken: string,
refreshToken: string,
params: {
access_token: string;
expires_in: number;
scope: string;
token_type: "Bearer";
id_token: string;
},
profile: any,
done: VerifyCallback,
) => void;
export type VerifyFunctionWithRequest = (
req: Request,
accessToken: string,
refreshToken: string,
profile: any,
done: VerifyCallback,
) => void;
export type VerifyFunction = (accessToken: string, refreshToken: string, profile: any, done: VerifyCallback) => void;
export class Strategy implements Strategy {
name: string;
authenticate: (req: Request, options?: object) => void;
constructor(
options: StrategyOptionsWithRequest,
verify: VerifyFunctionWithRequest | VerifyFunctionWithRequestAndParams,
);
constructor(options: StrategyOptions, verify: VerifyFunction);
constructor(verify: VerifyFunction);
}
These definitions were written by .
FAQs
TypeScript definitions for passport-google-oauth2
The npm package @types/passport-google-oauth2 receives a total of 27,459 weekly downloads. As such, @types/passport-google-oauth2 popularity was classified as popular.
We found that @types/passport-google-oauth2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.