Skip to content

Commit f0818d3

Browse files
committed
add solid start support
1 parent 40bb9d9 commit f0818d3

File tree

6 files changed

+1142
-0
lines changed

6 files changed

+1142
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "edgedb-auth-solid-start",
3+
"description": "Helper library to integrate the EdgeDB Auth extension with Solid Start",
4+
"version": "0.1.0",
5+
"author": "EdgeDB <[email protected]>",
6+
"type": "module",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/edgedb/edgedb-js.git",
10+
"directory": "packages/auth-solid-start"
11+
},
12+
"license": "Apache-2.0",
13+
"sideEffects": false,
14+
"files": [
15+
"/dist"
16+
],
17+
"exports": {
18+
"./server": "./dist/server/index.js",
19+
"./client": "./dist/client/index.js"
20+
},
21+
"scripts": {
22+
"typecheck": "tsc --project tsconfig.json --noEmit",
23+
"build": "tsc --project tsconfig.json"
24+
},
25+
"devDependencies": {
26+
"@solidjs/start": "^1.0.4",
27+
"@types/cookie": "^0.6.0",
28+
"@types/node": "^20.12.13",
29+
"edgedb": "^1.5.0",
30+
"solid-js": "^1.8.18",
31+
"typescript": "^5.4.5"
32+
},
33+
"peerDependencies": {
34+
"@solidjs/start": "^1.0.4",
35+
"edgedb": "^1.3.6",
36+
"solid-js": "^1.8.18"
37+
},
38+
"dependencies": {
39+
"@edgedb/auth-core": "0.2.1",
40+
"@solidjs/router": "^0.14.1",
41+
"vinxi": "^0.3.14"
42+
}
43+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {
2+
type BuiltinProviderNames,
3+
SolidAuthHelpers,
4+
type SolidAuthOptions,
5+
} from "../shared/index.js"
6+
7+
export * from "@edgedb/auth-core/errors"
8+
export { type BuiltinProviderNames, type SolidAuthOptions }
9+
10+
export default function createSolidClientAuth(options: SolidAuthOptions) {
11+
return new SolidClientAuth(options)
12+
}
13+
14+
export class SolidClientAuth extends SolidAuthHelpers {}

0 commit comments

Comments
 (0)