Skip to content

Commit

Permalink
add solid start support
Browse files Browse the repository at this point in the history
  • Loading branch information
Huliiiiii committed Jul 18, 2024
1 parent 40bb9d9 commit f0818d3
Show file tree
Hide file tree
Showing 6 changed files with 1,142 additions and 0 deletions.
43 changes: 43 additions & 0 deletions packages/auth-solid-start/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "edgedb-auth-solid-start",
"description": "Helper library to integrate the EdgeDB Auth extension with Solid Start",
"version": "0.1.0",
"author": "EdgeDB <[email protected]>",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/edgedb/edgedb-js.git",
"directory": "packages/auth-solid-start"
},
"license": "Apache-2.0",
"sideEffects": false,
"files": [
"/dist"
],
"exports": {
"./server": "./dist/server/index.js",
"./client": "./dist/client/index.js"
},
"scripts": {
"typecheck": "tsc --project tsconfig.json --noEmit",
"build": "tsc --project tsconfig.json"
},
"devDependencies": {
"@solidjs/start": "^1.0.4",
"@types/cookie": "^0.6.0",
"@types/node": "^20.12.13",
"edgedb": "^1.5.0",
"solid-js": "^1.8.18",
"typescript": "^5.4.5"
},
"peerDependencies": {
"@solidjs/start": "^1.0.4",
"edgedb": "^1.3.6",
"solid-js": "^1.8.18"
},
"dependencies": {
"@edgedb/auth-core": "0.2.1",
"@solidjs/router": "^0.14.1",
"vinxi": "^0.3.14"
}
}
1 change: 1 addition & 0 deletions packages/auth-solid-start/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
14 changes: 14 additions & 0 deletions packages/auth-solid-start/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {
type BuiltinProviderNames,
SolidAuthHelpers,
type SolidAuthOptions,
} from "../shared/index.js"

export * from "@edgedb/auth-core/errors"
export { type BuiltinProviderNames, type SolidAuthOptions }

export default function createSolidClientAuth(options: SolidAuthOptions) {
return new SolidClientAuth(options)
}

export class SolidClientAuth extends SolidAuthHelpers {}
Loading

0 comments on commit f0818d3

Please sign in to comment.