
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@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 13,018 weekly downloads. As such, @types/passport-google-oauth2 popularity was classified as popular.
We found that @types/passport-google-oauth2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.