Installation
npm install --save @types/apple-signin-api
Summary
This package contains type definitions for apple-signin-api (https://developer.apple.com/documentation/signinwithapplejs).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/apple-signin-api.
declare var AppleID: AppleSignInAPI.AppleID;
declare namespace AppleSignInAPI {
interface AuthorizationI {
code: string;
id_token: string;
state: string;
nonce?: string | undefined;
}
interface NameI {
firstName: string;
lastName: string;
}
interface SignInErrorI {
error: string;
}
interface SignInResponseI {
authorization: AuthorizationI;
user?: UserI | undefined;
}
interface UserI {
email: string;
name: NameI;
}
interface AuthI {
init: (config: ClientConfigI) => void;
signIn: (signInConfig?: ClientConfigI) => Promise<SignInResponseI>;
renderButton: () => void;
}
interface ClientConfigI {
clientId?: string | undefined;
redirectURI?: string | undefined;
scope?: string | undefined;
state?: string | undefined;
nonce?: string | undefined;
usePopup?: boolean | undefined;
}
interface AppleID {
auth: AuthI;
}
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: none
Credits
These definitions were written by Julius Lungys, and Koen Punt.