@pithy-sh/auth 0.1.5 → 0.1.6
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/instance/secrets.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;
|
|
1
|
+
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/instance/secrets.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;iBAaoE,CAAC;AACxG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,sEAAsE;AACtE,eAAO,MAAM,qBAAqB;;;;iBAsB/B,CAAC;AACJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB;;;iBAa6D,CAAC;AACnG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;iBAa6D,CAAC;AACjG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAe5E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD9B,CAAC;AAEH,kEAAkE;AAClE,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAGhF;AAED,uGAAuG;AACvG,wBAAsB,wBAAwB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAGpG;AAED,mGAAmG;AACnG,wBAAsB,uBAAuB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAGlG;AAED,2GAA2G;AAC3G,wBAAsB,0BAA0B,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAGxG;AAED,uGAAuG;AACvG,wBAAsB,wBAAwB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAGpG"}
|
package/dist/instance/secrets.js
CHANGED
|
@@ -30,24 +30,24 @@ const AUTH_FACEBOOK_CREDENTIALS = "auth-facebook-credentials";
|
|
|
30
30
|
const AUTH_GITHUB_CREDENTIALS = "auth-github-credentials";
|
|
31
31
|
/** The Google OAuth credential pair, stored as one typed JSON secret. */
|
|
32
32
|
const GoogleOAuthCredentials = z.object({
|
|
33
|
-
clientId: z.string().describe("The Google OAuth client id for this environment. Not secret on its own, but stored with the secret so the pair is atomic."),
|
|
34
|
-
clientSecret: z.string().describe("The Google OAuth client secret for this environment. Never committed, never an env literal.")
|
|
33
|
+
clientId: z.string().meta({ multiline: false }).describe("The Google OAuth client id for this environment. Not secret on its own, but stored with the secret so the pair is atomic."),
|
|
34
|
+
clientSecret: z.string().meta({ multiline: false }).describe("The Google OAuth client secret for this environment. Never committed, never an env literal.")
|
|
35
35
|
}).describe("A Google OAuth client credential pair (`clientId` + `clientSecret`) for one environment.");
|
|
36
36
|
/** The Apple Sign-In credentials, stored as one typed JSON secret. */
|
|
37
37
|
const AppleOAuthCredentials = z.object({
|
|
38
|
-
clientId: z.string().describe("The Apple Sign-In Services id (the web OAuth client id) for this environment."),
|
|
39
|
-
clientSecret: z.string().describe("The Apple client secret — an ES256 JWT minted from the `.p8` key. Expires (max 6 months), so rotate it on schedule."),
|
|
40
|
-
appBundleIdentifier: z.string().optional().describe("The native iOS app bundle id, used as the id-token audience for the native Sign-in-with-Apple flow. Optional.")
|
|
38
|
+
clientId: z.string().meta({ multiline: false }).describe("The Apple Sign-In Services id (the web OAuth client id) for this environment."),
|
|
39
|
+
clientSecret: z.string().meta({ multiline: false }).describe("The Apple client secret — an ES256 JWT minted from the `.p8` key. Expires (max 6 months), so rotate it on schedule."),
|
|
40
|
+
appBundleIdentifier: z.string().optional().meta({ multiline: false }).describe("The native iOS app bundle id, used as the id-token audience for the native Sign-in-with-Apple flow. Optional.")
|
|
41
41
|
}).describe("An Apple Sign-In credential set (`clientId` + `clientSecret`, optional `appBundleIdentifier`) for one environment.");
|
|
42
42
|
/** The Facebook Login credential pair, stored as one typed JSON secret. */
|
|
43
43
|
const FacebookOAuthCredentials = z.object({
|
|
44
|
-
clientId: z.string().describe("The Facebook Login app id for this environment. Not secret on its own, but stored with the secret so the pair is atomic."),
|
|
45
|
-
clientSecret: z.string().describe("The Facebook Login app secret for this environment. Never committed, never an env literal.")
|
|
44
|
+
clientId: z.string().meta({ multiline: false }).describe("The Facebook Login app id for this environment. Not secret on its own, but stored with the secret so the pair is atomic."),
|
|
45
|
+
clientSecret: z.string().meta({ multiline: false }).describe("The Facebook Login app secret for this environment. Never committed, never an env literal.")
|
|
46
46
|
}).describe("A Facebook Login credential pair (`clientId` + `clientSecret`) for one environment.");
|
|
47
47
|
/** The GitHub OAuth credential pair, stored as one typed JSON secret. */
|
|
48
48
|
const GithubOAuthCredentials = z.object({
|
|
49
|
-
clientId: z.string().describe("The GitHub OAuth app client id for this environment. Not secret on its own, but stored with the secret so the pair is atomic."),
|
|
50
|
-
clientSecret: z.string().describe("The GitHub OAuth app client secret for this environment. Never committed, never an env literal.")
|
|
49
|
+
clientId: z.string().meta({ multiline: false }).describe("The GitHub OAuth app client id for this environment. Not secret on its own, but stored with the secret so the pair is atomic."),
|
|
50
|
+
clientSecret: z.string().meta({ multiline: false }).describe("The GitHub OAuth app client secret for this environment. Never committed, never an env literal.")
|
|
51
51
|
}).describe("A GitHub OAuth credential pair (`clientId` + `clientSecret`) for one environment.");
|
|
52
52
|
/**
|
|
53
53
|
* Where a human goes for each OAuth credential pair, and where the same human rotates it.
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
/** This package's npm name — the join key against a release feed. */
|
|
4
4
|
export declare const PACKAGE_NAME = "@pithy-sh/auth";
|
|
5
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
6
|
-
export declare const PACKAGE_VERSION = "0.1.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.1.6";
|
|
7
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
/** This package's npm name — the join key against a release feed. */
|
|
5
5
|
const PACKAGE_NAME = "@pithy-sh/auth";
|
|
6
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
7
|
-
const PACKAGE_VERSION = "0.1.
|
|
7
|
+
const PACKAGE_VERSION = "0.1.6";
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PACKAGE_NAME, PACKAGE_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@better-auth/i18n": "^1.7.1",
|
|
40
40
|
"@cloudflare/workers-types": "^5.20260729.1",
|
|
41
41
|
"@hono/zod-validator": "^0.9.0",
|
|
42
|
-
"@pithy-sh/core": "^0.
|
|
43
|
-
"@pithy-sh/email": "^0.1.
|
|
44
|
-
"@pithy-sh/secrets": "^0.1.
|
|
45
|
-
"@pithy-sh/turnstile": "^0.1.
|
|
42
|
+
"@pithy-sh/core": "^0.3.0",
|
|
43
|
+
"@pithy-sh/email": "^0.1.7",
|
|
44
|
+
"@pithy-sh/secrets": "^0.1.6",
|
|
45
|
+
"@pithy-sh/turnstile": "^0.1.6",
|
|
46
46
|
"better-auth": "^1.7.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
package/src/instance/secrets.ts
CHANGED
|
@@ -36,11 +36,13 @@ export const GoogleOAuthCredentials = z
|
|
|
36
36
|
.object({
|
|
37
37
|
clientId: z
|
|
38
38
|
.string()
|
|
39
|
+
.meta({ multiline: false })
|
|
39
40
|
.describe(
|
|
40
41
|
"The Google OAuth client id for this environment. Not secret on its own, but stored with the secret so the pair is atomic.",
|
|
41
42
|
),
|
|
42
43
|
clientSecret: z
|
|
43
44
|
.string()
|
|
45
|
+
.meta({ multiline: false })
|
|
44
46
|
.describe("The Google OAuth client secret for this environment. Never committed, never an env literal."),
|
|
45
47
|
})
|
|
46
48
|
.describe("A Google OAuth client credential pair (`clientId` + `clientSecret`) for one environment.");
|
|
@@ -49,15 +51,20 @@ export type GoogleOAuthCredentials = z.infer<typeof GoogleOAuthCredentials>;
|
|
|
49
51
|
/** The Apple Sign-In credentials, stored as one typed JSON secret. */
|
|
50
52
|
export const AppleOAuthCredentials = z
|
|
51
53
|
.object({
|
|
52
|
-
clientId: z
|
|
54
|
+
clientId: z
|
|
55
|
+
.string()
|
|
56
|
+
.meta({ multiline: false })
|
|
57
|
+
.describe("The Apple Sign-In Services id (the web OAuth client id) for this environment."),
|
|
53
58
|
clientSecret: z
|
|
54
59
|
.string()
|
|
60
|
+
.meta({ multiline: false })
|
|
55
61
|
.describe(
|
|
56
62
|
"The Apple client secret — an ES256 JWT minted from the `.p8` key. Expires (max 6 months), so rotate it on schedule.",
|
|
57
63
|
),
|
|
58
64
|
appBundleIdentifier: z
|
|
59
65
|
.string()
|
|
60
66
|
.optional()
|
|
67
|
+
.meta({ multiline: false })
|
|
61
68
|
.describe(
|
|
62
69
|
"The native iOS app bundle id, used as the id-token audience for the native Sign-in-with-Apple flow. Optional.",
|
|
63
70
|
),
|
|
@@ -72,11 +79,13 @@ export const FacebookOAuthCredentials = z
|
|
|
72
79
|
.object({
|
|
73
80
|
clientId: z
|
|
74
81
|
.string()
|
|
82
|
+
.meta({ multiline: false })
|
|
75
83
|
.describe(
|
|
76
84
|
"The Facebook Login app id for this environment. Not secret on its own, but stored with the secret so the pair is atomic.",
|
|
77
85
|
),
|
|
78
86
|
clientSecret: z
|
|
79
87
|
.string()
|
|
88
|
+
.meta({ multiline: false })
|
|
80
89
|
.describe("The Facebook Login app secret for this environment. Never committed, never an env literal."),
|
|
81
90
|
})
|
|
82
91
|
.describe("A Facebook Login credential pair (`clientId` + `clientSecret`) for one environment.");
|
|
@@ -87,11 +96,13 @@ export const GithubOAuthCredentials = z
|
|
|
87
96
|
.object({
|
|
88
97
|
clientId: z
|
|
89
98
|
.string()
|
|
99
|
+
.meta({ multiline: false })
|
|
90
100
|
.describe(
|
|
91
101
|
"The GitHub OAuth app client id for this environment. Not secret on its own, but stored with the secret so the pair is atomic.",
|
|
92
102
|
),
|
|
93
103
|
clientSecret: z
|
|
94
104
|
.string()
|
|
105
|
+
.meta({ multiline: false })
|
|
95
106
|
.describe("The GitHub OAuth app client secret for this environment. Never committed, never an env literal."),
|
|
96
107
|
})
|
|
97
108
|
.describe("A GitHub OAuth credential pair (`clientId` + `clientSecret`) for one environment.");
|
package/src/version.generated.ts
CHANGED