
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@types/passport-apple
Advanced tools
TypeScript definitions for passport-apple
npm install --save @types/passport-apple
This package contains type definitions for passport-apple (https://github.com/ananay/passport-apple#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-apple.
import { Request } from "express";
import OAuth2Strategy = require("passport-oauth2");
declare namespace AppleStrategy {
interface AuthenticateOptionsBase extends Partial<OAuth2Strategy._StrategyOptionsBase> {
authorizationURL?: string | undefined;
tokenURL?: string | undefined;
clientID: string;
teamID: string;
keyID: string;
privateKeyLocation?: string | undefined;
privateKeyString?: string | undefined;
}
interface AuthenticateOptions extends AuthenticateOptionsBase {
passReqToCallback: false;
}
interface AuthenticateOptionsWithRequest extends AuthenticateOptionsBase {
passReqToCallback?: true | undefined;
}
type AppleAuthorizationParams = object & {
response_mode: "form_post";
scope: "name email";
response_type: "code id_token";
state: string | undefined;
};
interface Profile {
[key: string]: any;
}
type VerifyCallback = (err?: Error | null, user?: object, info?: object) => void;
type VerifyFunction = (
accessToken: string,
refreshToken: string,
idToken: string,
profile: Profile,
verified: VerifyCallback,
) => void;
type VerifyFunctionWithRequest = (
req: Request,
accessToken: string,
refreshToken: string,
idToken: string,
profile: Profile,
verified: VerifyCallback,
) => void;
const Strategy: typeof AppleStrategy;
}
// @ts-ignore AppleStrategy's options type incompatible with OAuth2Strategy's options type
declare class AppleStrategy extends OAuth2Strategy {
constructor(options: AppleStrategy.AuthenticateOptions, verify: AppleStrategy.VerifyFunction);
constructor(options: AppleStrategy.AuthenticateOptionsWithRequest, verify: AppleStrategy.VerifyFunctionWithRequest);
authorizationParams(options: object): AppleStrategy.AppleAuthorizationParams;
name: "apple";
}
export = AppleStrategy;
These definitions were written by ytkalan.
FAQs
TypeScript definitions for passport-apple
The npm package @types/passport-apple receives a total of 12,600 weekly downloads. As such, @types/passport-apple popularity was classified as popular.
We found that @types/passport-apple 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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.