@auth/solid-start 0.5.1 → 0.5.3
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/index.d.ts +22 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
|
-
import * as _auth_core_types from '@auth/core/types';
|
|
2
1
|
import { AuthConfig, Session } from '@auth/core/types';
|
|
3
2
|
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* :::warning
|
|
6
|
+
* `@auth/solid-start` is currently experimental. The API _will_ change in the future.
|
|
7
|
+
* :::
|
|
8
|
+
*
|
|
9
|
+
* SolidStart Auth is the official SolidStart integration for Auth.js.
|
|
10
|
+
* It provides a simple way to add authentication to your SolidStart app in a few lines of code.
|
|
11
|
+
*
|
|
12
|
+
* ## Installation
|
|
13
|
+
*
|
|
14
|
+
* ```bash npm2yarn
|
|
15
|
+
* npm install @auth/core @auth/solid-start
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* We recommended to using [create-jd-app](https://github.com/OrJDev/create-jd-app)
|
|
19
|
+
*
|
|
20
|
+
* @module @auth/solid-start
|
|
21
|
+
*/
|
|
22
|
+
|
|
4
23
|
interface SolidAuthConfig extends AuthConfig {
|
|
5
24
|
/**
|
|
6
25
|
* Defines the base path for the auth routes.
|
|
@@ -185,8 +204,8 @@ interface SolidAuthConfig extends AuthConfig {
|
|
|
185
204
|
*
|
|
186
205
|
*/
|
|
187
206
|
declare function SolidAuth(config: SolidAuthConfig): {
|
|
188
|
-
GET(event: any): Promise<
|
|
189
|
-
POST(event: any): Promise<
|
|
207
|
+
GET(event: any): Promise<Response | undefined>;
|
|
208
|
+
POST(event: any): Promise<Response | undefined>;
|
|
190
209
|
};
|
|
191
210
|
type GetSessionResult = Promise<Session | null>;
|
|
192
211
|
declare function getSession(req: Request, options: Omit<AuthConfig, "raw">): GetSessionResult;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth/solid-start",
|
|
3
3
|
"description": "Authentication for SolidStart.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"client.*",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@auth/core": "0.26.
|
|
29
|
+
"@auth/core": "0.26.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@solidjs/meta": "^0.28.0",
|