Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@types/apple-signin-api
Advanced tools
Readme
npm install --save @types/apple-signin-api
This package contains type definitions for apple-signin-api (https://developer.apple.com/documentation/signinwithapplejs).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/apple-signin-api.
declare var AppleID: AppleSignInAPI.AppleID;
declare namespace AppleSignInAPI {
// https://developer.apple.com/documentation/signinwithapplejs/authorizationi
interface AuthorizationI {
code: string;
id_token: string;
state: string;
nonce?: string | undefined;
}
// https://developer.apple.com/documentation/signinwithapplejs/namei
interface NameI {
firstName: string;
lastName: string;
}
// https://developer.apple.com/documentation/signinwithapplejs/signinerrori
interface SignInErrorI {
error: string;
}
// https://developer.apple.com/documentation/signinwithapplejs/signinresponsei
interface SignInResponseI {
authorization: AuthorizationI;
user?: UserI | undefined;
}
// https://developer.apple.com/documentation/signinwithapplejs/useri
interface UserI {
email: string;
name: NameI;
}
// https://developer.apple.com/documentation/signinwithapplejs/authi
interface AuthI {
init: (config: ClientConfigI) => void;
signIn: (signInConfig?: ClientConfigI) => Promise<SignInResponseI>;
renderButton: () => void;
}
// https://developer.apple.com/documentation/signinwithapplejs/clientconfigi
interface ClientConfigI {
clientId?: string | undefined;
redirectURI?: string | undefined;
scope?: string | undefined;
state?: string | undefined;
nonce?: string | undefined;
usePopup?: boolean | undefined;
}
interface AppleID {
auth: AuthI;
}
}
These definitions were written by Julius Lungys, and Koen Punt.
FAQs
TypeScript definitions for apple-signin-api
The npm package @types/apple-signin-api receives a total of 13,892 weekly downloads. As such, @types/apple-signin-api popularity was classified as popular.
We found that @types/apple-signin-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.