@logto/connector-apple 1.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ import { Config } from '@silverhand/jest-config';
2
+ declare const config: Config.InitialOptions;
3
+ export default config;
@@ -0,0 +1,8 @@
1
+ import { ConnectorMetadata } from '@logto/connector-core';
2
+ export declare const issuer = "https://appleid.apple.com";
3
+ export declare const authorizationEndpoint: string;
4
+ export declare const accessTokenEndpoint: string;
5
+ export declare const jwksUri: string;
6
+ export declare const scope = "";
7
+ export declare const defaultMetadata: ConnectorMetadata;
8
+ export declare const defaultTimeout = 5000;
@@ -0,0 +1,3 @@
1
+ import { CreateConnector, SocialConnector } from '@logto/connector-core';
2
+ declare const createAppleConnector: CreateConnector<SocialConnector>;
3
+ export default createAppleConnector;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const mockedConfig: {
2
+ clientId: string;
3
+ clientSecret: string;
4
+ };
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare const appleConfigGuard: z.ZodObject<{
3
+ clientId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ clientId: string;
6
+ }, {
7
+ clientId: string;
8
+ }>;
9
+ export declare type AppleConfig = z.infer<typeof appleConfigGuard>;
10
+ export declare const dataGuard: z.ZodObject<{
11
+ id_token: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id_token: string;
14
+ }, {
15
+ id_token: string;
16
+ }>;
package/logo-dark.svg ADDED
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M16.9107 12.5628C16.9186 11.874 17.1013 11.1984 17.4415 10.5994C17.7817 10.0004 18.2684 9.49755 18.8559 9.13791C18.4824 8.60614 17.9908 8.16818 17.4196 7.85839C16.8484 7.54861 16.2131 7.37543 15.5637 7.35246C14.1618 7.21035 12.8283 8.1777 12.118 8.1777C11.4072 8.1777 10.3099 7.37333 9.14719 7.39552C8.38414 7.41674 7.6397 7.63582 6.98679 8.03129C6.33389 8.42677 5.79492 8.98507 5.4227 9.65151C3.83654 12.4057 5.01783 16.4858 6.56357 18.7206C7.31998 19.8131 8.22163 21.0436 9.40557 20.9988C10.5465 20.954 10.9771 20.2619 12.3546 20.2619C13.7325 20.2619 14.1201 20.9988 15.3253 20.9766C16.552 20.9539 17.3305 19.8615 18.0808 18.7649C18.6178 17.9764 19.0374 17.114 19.3265 16.2049C18.6123 15.8998 18.003 15.3925 17.5737 14.7453C17.1444 14.0981 16.9139 13.3394 16.9107 12.5628ZM14.6455 5.87397C15.3249 5.0772 15.6614 4.04404 15.5818 3C14.5561 3.09949 13.6074 3.5876 12.9302 4.36423C12.5923 4.74047 12.3336 5.18089 12.1696 5.65924C12.0055 6.13759 11.9394 6.64407 11.9753 7.1485C12.4884 7.15558 12.9962 7.04428 13.4593 6.82323C13.9224 6.60219 14.3283 6.27736 14.6455 5.87397Z" fill="white"/>
3
+ </svg>
package/logo.svg ADDED
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M16.9107 12.5628C16.9186 11.874 17.1013 11.1984 17.4415 10.5994C17.7817 10.0004 18.2684 9.49755 18.8559 9.13791C18.4824 8.60614 17.9908 8.16818 17.4196 7.85839C16.8484 7.54861 16.2131 7.37543 15.5637 7.35246C14.1618 7.21035 12.8283 8.1777 12.118 8.1777C11.4072 8.1777 10.3099 7.37333 9.14719 7.39552C8.38414 7.41674 7.6397 7.63582 6.98679 8.03129C6.33389 8.42677 5.79492 8.98507 5.4227 9.65151C3.83654 12.4057 5.01783 16.4858 6.56357 18.7206C7.31998 19.8131 8.22163 21.0436 9.40557 20.9988C10.5465 20.954 10.9771 20.2619 12.3546 20.2619C13.7325 20.2619 14.1201 20.9988 15.3253 20.9766C16.552 20.9539 17.3305 19.8615 18.0808 18.7649C18.6178 17.9764 19.0374 17.114 19.3265 16.2049C18.6123 15.8998 18.003 15.3925 17.5737 14.7453C17.1444 14.0981 16.9139 13.3394 16.9107 12.5628ZM14.6455 5.87397C15.3249 5.0772 15.6614 4.04404 15.5818 3C14.5561 3.09949 13.6074 3.5876 12.9302 4.36423C12.5923 4.74047 12.3336 5.18089 12.1696 5.65924C12.0055 6.13759 11.9394 6.64407 11.9753 7.1485C12.4884 7.15558 12.9962 7.04428 13.4593 6.82323C13.9224 6.60219 14.3283 6.27736 14.6455 5.87397Z" fill="black"/>
3
+ </svg>
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@logto/connector-apple",
3
+ "version": "1.0.0-beta.8",
4
+ "description": "Apple web connector implementation.",
5
+ "main": "./lib/index.js",
6
+ "exports": "./lib/index.js",
7
+ "author": "Silverhand Inc. <contact@silverhand.io>",
8
+ "license": "MPL-2.0",
9
+ "files": [
10
+ "lib",
11
+ "docs",
12
+ "logo.svg",
13
+ "README.md",
14
+ "logo-dark.svg"
15
+ ],
16
+ "scripts": {
17
+ "precommit": "lint-staged",
18
+ "build": "rm -rf lib/ && ncc build src/index.ts -o lib",
19
+ "dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
20
+ "lint": "eslint --ext .ts src",
21
+ "lint:report": "pnpm lint --format json --output-file report.json",
22
+ "test": "jest",
23
+ "test:coverage": "jest --coverage --silent",
24
+ "prepack": "pnpm build"
25
+ },
26
+ "dependencies": {
27
+ "@logto/connector-core": "^1.0.0-beta.8",
28
+ "@silverhand/essentials": "^1.2.0",
29
+ "@silverhand/jest-config": "1.0.0-rc.3",
30
+ "got": "^11.8.2",
31
+ "jose": "^4.3.8",
32
+ "zod": "^3.14.3"
33
+ },
34
+ "devDependencies": {
35
+ "@jest/types": "^28.1.3",
36
+ "@silverhand/eslint-config": "1.0.0-rc.2",
37
+ "@silverhand/ts-config": "1.0.0-rc.2",
38
+ "@types/jest": "^28.1.6",
39
+ "@types/node": "^16.3.1",
40
+ "@vercel/ncc": "^0.34.0",
41
+ "eslint": "^8.21.0",
42
+ "jest": "^28.1.3",
43
+ "jest-matcher-specific-error": "^1.0.0",
44
+ "lint-staged": "^13.0.0",
45
+ "nock": "^13.2.2",
46
+ "prettier": "^2.7.1",
47
+ "typescript": "^4.7.4"
48
+ },
49
+ "engines": {
50
+ "node": "^16.0.0"
51
+ },
52
+ "eslintConfig": {
53
+ "extends": "@silverhand"
54
+ },
55
+ "prettier": "@silverhand/eslint-config/.prettierrc",
56
+ "publishConfig": {
57
+ "access": "public"
58
+ },
59
+ "gitHead": "301bd23b49395f90a2b0b37a774e2bdeb1208cf1"
60
+ }