@checkstack/auth-credential-backend 0.0.2

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,54 @@
1
+ # @checkstack/auth-credential-backend
2
+
3
+ ## 0.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d20d274: Initial release of all @checkstack packages. Rebranded from Checkmate to Checkstack with new npm organization @checkstack and domain checkstack.dev.
8
+ - Updated dependencies [d20d274]
9
+ - @checkstack/auth-backend@0.0.2
10
+ - @checkstack/backend-api@0.0.2
11
+ - @checkstack/common@0.0.2
12
+
13
+ ## 0.0.4
14
+
15
+ ### Patch Changes
16
+
17
+ - a65e002: Add compile-time type safety for Lucide icon names
18
+
19
+ - Add `LucideIconName` type and `lucideIconSchema` Zod schema to `@checkstack/common`
20
+ - Update backend interfaces (`AuthStrategy`, `NotificationStrategy`, `IntegrationProvider`, `CommandDefinition`) to use `LucideIconName`
21
+ - Update RPC contracts to use `lucideIconSchema` for proper type inference across RPC boundaries
22
+ - Simplify `SocialProviderButton` to use `DynamicIcon` directly (removes 30+ lines of pascalCase conversion)
23
+ - Replace static `iconMap` in `SearchDialog` with `DynamicIcon` for dynamic icon rendering
24
+ - Add fallback handling in `DynamicIcon` when icon name isn't found
25
+ - Fix legacy kebab-case icon names to PascalCase: `mail`→`Mail`, `send`→`Send`, `github`→`Github`, `key-round`→`KeyRound`, `network`→`Network`, `AlertCircle`→`CircleAlert`
26
+
27
+ - Updated dependencies [b4eb432]
28
+ - Updated dependencies [a65e002]
29
+ - Updated dependencies [a65e002]
30
+ - @checkstack/backend-api@1.1.0
31
+ - @checkstack/common@0.2.0
32
+ - @checkstack/auth-backend@1.1.0
33
+
34
+ ## 0.0.3
35
+
36
+ ### Patch Changes
37
+
38
+ - @checkstack/auth-backend@1.0.1
39
+
40
+ ## 0.0.2
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [ffc28f6]
45
+ - Updated dependencies [71275dd]
46
+ - Updated dependencies [ae19ff6]
47
+ - Updated dependencies [32f2535]
48
+ - Updated dependencies [b55fae6]
49
+ - Updated dependencies [b354ab3]
50
+ - Updated dependencies [8e889b4]
51
+ - Updated dependencies [81f3f85]
52
+ - @checkstack/common@0.1.0
53
+ - @checkstack/backend-api@1.0.0
54
+ - @checkstack/auth-backend@1.0.0
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@checkstack/auth-credential-backend",
3
+ "version": "0.0.2",
4
+ "type": "module",
5
+ "main": "src/index.ts",
6
+ "exports": {
7
+ ".": "./src/index.ts"
8
+ },
9
+ "scripts": {
10
+ "typecheck": "tsc --noEmit"
11
+ },
12
+ "dependencies": {
13
+ "@checkstack/backend-api": "workspace:*",
14
+ "@checkstack/auth-backend": "workspace:*",
15
+ "zod": "^4.2.1",
16
+ "@checkstack/common": "workspace:*"
17
+ },
18
+ "devDependencies": {
19
+ "@checkstack/tsconfig": "workspace:*",
20
+ "typescript": "^5.9.3"
21
+ }
22
+ }
package/src/index.ts ADDED
@@ -0,0 +1,28 @@
1
+ import {
2
+ createBackendPlugin,
3
+ type AuthStrategy,
4
+ } from "@checkstack/backend-api";
5
+ import { betterAuthExtensionPoint } from "@checkstack/auth-backend";
6
+ import { z } from "zod";
7
+ import { pluginMetadata } from "./plugin-metadata";
8
+
9
+ // Credential strategy has no configuration - it's built into better-auth
10
+ const credentialConfigV1 = z.object({});
11
+
12
+ const credentialStrategy: AuthStrategy<z.infer<typeof credentialConfigV1>> = {
13
+ id: "credential",
14
+ displayName: "Email & Password",
15
+ description: "Traditional email and password authentication",
16
+ icon: "KeyRound",
17
+ configVersion: 1,
18
+ configSchema: credentialConfigV1,
19
+ requiresManualRegistration: true,
20
+ };
21
+
22
+ export default createBackendPlugin({
23
+ metadata: pluginMetadata,
24
+ register(env) {
25
+ const extensionPoint = env.getExtensionPoint(betterAuthExtensionPoint);
26
+ extensionPoint.addStrategy(credentialStrategy);
27
+ },
28
+ });
@@ -0,0 +1,9 @@
1
+ import { definePluginMetadata } from "@checkstack/common";
2
+
3
+ /**
4
+ * Plugin metadata for the Auth Credential backend.
5
+ * This is the single source of truth for the plugin ID.
6
+ */
7
+ export const pluginMetadata = definePluginMetadata({
8
+ pluginId: "auth-credential",
9
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "@checkstack/tsconfig/base.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist",
5
+ "rootDir": "./src"
6
+ },
7
+ "include": [
8
+ "src/**/*"
9
+ ]
10
+ }