Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/passport-apple

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/passport-apple - npm Package Compare versions

Comparing version 1.1.2 to 2.0.0

27

passport-apple/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for passport-apple 1.1
// Type definitions for passport-apple 2.0
// Project: https://github.com/ananay/passport-apple#readme

@@ -7,7 +7,6 @@ // Definitions by: ytkalan <https://github.com/atomyyyy>

import { Request } from "express";
import { Strategy } from "passport";
import passportOAuth2 = require("passport-oauth2");
import OAuth2Strategy = require("passport-oauth2");
declare namespace AppleStrategy {
interface AuthenticateOptionsBase extends Partial<passportOAuth2._StrategyOptionsBase> {
interface AuthenticateOptionsBase extends Partial<OAuth2Strategy._StrategyOptionsBase> {
authorizationURL?: string | undefined;

@@ -23,7 +22,7 @@ tokenURL?: string | undefined;

interface AuthenticateOptions extends AuthenticateOptionsBase {
passReqToCallback?: false | undefined;
passReqToCallback: false;
}
interface AuthenticateOptionsWithRequest extends AuthenticateOptionsBase {
passReqToCallback: true;
passReqToCallback?: true | undefined;
}

@@ -34,11 +33,6 @@

scope: "name email";
response_type: "name email";
response_type: "code id_token";
state: string | undefined;
};
interface DecodedIdToken {
sub: string;
[key: string]: any;
}
interface Profile {

@@ -53,3 +47,3 @@ [key: string]: any;

refreshToken: string,
decodedIdToken: DecodedIdToken,
idToken: string,
profile: Profile,

@@ -63,9 +57,12 @@ verified: VerifyCallback,

refreshToken: string,
decodedIdToken: DecodedIdToken,
idToken: string,
profile: Profile,
verified: VerifyCallback,
) => void;
const Strategy: typeof AppleStrategy;
}
declare class AppleStrategy extends passportOAuth2 {
//@ts-ignore AppleStrategy's options type incompatible with OAuth2Strategy's options type
declare class AppleStrategy extends OAuth2Strategy {
constructor(options: AppleStrategy.AuthenticateOptions, verify: AppleStrategy.VerifyFunction);

@@ -72,0 +69,0 @@ constructor(options: AppleStrategy.AuthenticateOptionsWithRequest, verify: AppleStrategy.VerifyFunctionWithRequest);

{
"name": "@types/passport-apple",
"version": "1.1.2",
"version": "2.0.0",
"description": "TypeScript definitions for passport-apple",

@@ -24,7 +24,6 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-apple",

"@types/express": "*",
"@types/passport": "*",
"@types/passport-oauth2": "*"
},
"typesPublisherContentHash": "ec4bed80a859c0e7712ff3de8efc281eda2a4bf1f80919ab5ef84783d12bff6f",
"typesPublisherContentHash": "3a3a495f9449523233f798c2b1f75ca46c6e53f4238a6806077219a2c78a6f33",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

````ts
// Type definitions for passport-apple 1.1
// Type definitions for passport-apple 2.0
// Project: https://github.com/ananay/passport-apple#readme

@@ -18,7 +18,6 @@ // Definitions by: ytkalan <https://github.com/atomyyyy>

import { Request } from "express";
import { Strategy } from "passport";
import passportOAuth2 = require("passport-oauth2");
import OAuth2Strategy = require("passport-oauth2");
declare namespace AppleStrategy {
interface AuthenticateOptionsBase extends Partial<passportOAuth2._StrategyOptionsBase> {
interface AuthenticateOptionsBase extends Partial<OAuth2Strategy._StrategyOptionsBase> {
authorizationURL?: string | undefined;

@@ -34,7 +33,7 @@ tokenURL?: string | undefined;

interface AuthenticateOptions extends AuthenticateOptionsBase {
passReqToCallback?: false | undefined;
passReqToCallback: false;
}
interface AuthenticateOptionsWithRequest extends AuthenticateOptionsBase {
passReqToCallback: true;
passReqToCallback?: true | undefined;
}

@@ -45,11 +44,6 @@

scope: "name email";
response_type: "name email";
response_type: "code id_token";
state: string | undefined;
};
interface DecodedIdToken {
sub: string;
[key: string]: any;
}
interface Profile {

@@ -64,3 +58,3 @@ [key: string]: any;

refreshToken: string,
decodedIdToken: DecodedIdToken,
idToken: string,
profile: Profile,

@@ -74,9 +68,12 @@ verified: VerifyCallback,

refreshToken: string,
decodedIdToken: DecodedIdToken,
idToken: string,
profile: Profile,
verified: VerifyCallback,
) => void;
const Strategy: typeof AppleStrategy;
}
declare class AppleStrategy extends passportOAuth2 {
//@ts-ignore AppleStrategy's options type incompatible with OAuth2Strategy's options type
declare class AppleStrategy extends OAuth2Strategy {
constructor(options: AppleStrategy.AuthenticateOptions, verify: AppleStrategy.VerifyFunction);

@@ -94,4 +91,4 @@ constructor(options: AppleStrategy.AuthenticateOptionsWithRequest, verify: AppleStrategy.VerifyFunctionWithRequest);

### Additional Details
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport), [@types/passport-oauth2](https://npmjs.com/package/@types/passport-oauth2)
* Last updated: Thu, 05 Oct 2023 07:34:50 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport-oauth2](https://npmjs.com/package/@types/passport-oauth2)
* Global values: none

@@ -98,0 +95,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc