@absolutejs/auth 0.0.2 → 0.0.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/dist/example/db/schema.d.ts +42 -10
- package/dist/index.js +229 -222
- package/dist/src/callback.d.ts +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/protectRoute.d.ts +2 -2
- package/dist/src/status.d.ts +2 -2
- package/package.json +2 -2
package/dist/src/callback.d.ts
CHANGED
|
@@ -10,13 +10,13 @@ type CallbackProps<UserType> = {
|
|
|
10
10
|
export declare const callback: <UserType>({ clientProviders, callbackRoute, onCallback, getUser, createUser }: CallbackProps<UserType>) => Elysia<"", {
|
|
11
11
|
decorator: {};
|
|
12
12
|
store: {
|
|
13
|
-
session: import("./types").SessionRecord<
|
|
13
|
+
session: import("./types").SessionRecord<UserType>;
|
|
14
14
|
};
|
|
15
15
|
derive: {};
|
|
16
16
|
resolve: {};
|
|
17
17
|
}, {
|
|
18
18
|
error: {};
|
|
19
|
-
typebox: import("
|
|
19
|
+
typebox: import("@sinclair/typebox").TModule<{}, {}>;
|
|
20
20
|
}, {
|
|
21
21
|
schema: {};
|
|
22
22
|
macro: {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { AbsoluteAuthProps } from './types';
|
|
|
4
4
|
export declare const absoluteAuth: <UserType>({ config, authorizeRoute, callbackRoute, logoutRoute, statusRoute, refreshRoute, revokeRoute, onAuthorize, onCallback, onStatus, onRefresh, onLogout, onRevoke, createUser, getUser }: AbsoluteAuthProps) => Elysia<"", {
|
|
5
5
|
decorator: {};
|
|
6
6
|
store: {
|
|
7
|
-
session: import("./types").SessionRecord<
|
|
7
|
+
session: import("./types").SessionRecord<UserType>;
|
|
8
8
|
};
|
|
9
9
|
derive: {};
|
|
10
10
|
resolve: {};
|
|
@@ -13,7 +13,7 @@ export declare const absoluteAuth: <UserType>({ config, authorizeRoute, callback
|
|
|
13
13
|
OAUTH2_REQUEST_ERROR: OAuth2RequestError;
|
|
14
14
|
ARCTIC_FETCH_ERROR: ArcticFetchError;
|
|
15
15
|
};
|
|
16
|
-
typebox: import("
|
|
16
|
+
typebox: import("@sinclair/typebox").TModule<{}, {}>;
|
|
17
17
|
}, {
|
|
18
18
|
schema: {};
|
|
19
19
|
macro: {};
|
|
@@ -2,13 +2,13 @@ import Elysia from 'elysia';
|
|
|
2
2
|
export declare const protectRoute: <UserType>() => Elysia<"", {
|
|
3
3
|
decorator: {};
|
|
4
4
|
store: {
|
|
5
|
-
session: import("./types").SessionRecord<
|
|
5
|
+
session: import("./types").SessionRecord<UserType>;
|
|
6
6
|
};
|
|
7
7
|
derive: {};
|
|
8
8
|
resolve: {};
|
|
9
9
|
}, {
|
|
10
10
|
error: {};
|
|
11
|
-
typebox: import("
|
|
11
|
+
typebox: import("@sinclair/typebox").TModule<{}, {}>;
|
|
12
12
|
}, {
|
|
13
13
|
schema: {};
|
|
14
14
|
macro: {};
|
package/dist/src/status.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ type StatusProps = {
|
|
|
7
7
|
export declare const status: <UserType>({ statusRoute, onStatus }: StatusProps) => Elysia<"", {
|
|
8
8
|
decorator: {};
|
|
9
9
|
store: {
|
|
10
|
-
session: import("./types").SessionRecord<
|
|
10
|
+
session: import("./types").SessionRecord<UserType>;
|
|
11
11
|
};
|
|
12
12
|
derive: {};
|
|
13
13
|
resolve: {};
|
|
14
14
|
}, {
|
|
15
15
|
error: {};
|
|
16
|
-
typebox: import("
|
|
16
|
+
typebox: import("@sinclair/typebox").TModule<{}, {}>;
|
|
17
17
|
}, {
|
|
18
18
|
schema: {};
|
|
19
19
|
macro: {};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.3",
|
|
3
3
|
"name": "@absolutejs/auth",
|
|
4
4
|
"description": "An authorization library for absolutejs",
|
|
5
5
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"elysia",
|
|
26
26
|
"oauth"
|
|
27
27
|
],
|
|
28
|
-
"types": "dist/index.d.ts",
|
|
28
|
+
"types": "dist/src/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"arctic": "3.6.0",
|
|
31
31
|
"elysia": "1.2.25"
|