@absolutejs/auth 0.57.7 → 0.57.9
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/agents/index.d.ts +1 -1
- package/dist/agents/index.js +66 -35
- package/dist/agents/index.js.map +3 -3
- package/dist/agents/postgresStores.d.ts +586 -1
- package/dist/cli/migrate.js +152 -68
- package/dist/cli/migrate.js.map +6 -6
- package/dist/htmx/index.js +269 -111
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.d.ts +6 -5
- package/dist/index.js +405 -168
- package/dist/index.js.map +12 -12
- package/dist/linkedProviders/index.js +269 -111
- package/dist/linkedProviders/index.js.map +3 -3
- package/dist/providers/clients.d.ts +30 -17
- package/dist/providers/index.js +269 -111
- package/dist/providers/index.js.map +3 -3
- package/dist/routes/profile.d.ts +6 -3
- package/dist/routes/refresh.d.ts +1 -1
- package/dist/routes/revoke.d.ts +1 -1
- package/dist/server.js +399 -168
- package/dist/server.js.map +12 -12
- package/dist/session/neonStore.d.ts +60 -0
- package/dist/types.d.ts +6 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -2
package/dist/routes/profile.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
|
+
import type { AuthSessionStore } from '../session/types';
|
|
2
3
|
import { ClientProviders, OnProfileError, OnProfileSuccess, RouteString } from '../types';
|
|
3
|
-
type ProfileProps = {
|
|
4
|
+
type ProfileProps<UserType> = {
|
|
5
|
+
authSessionStore?: AuthSessionStore<UserType>;
|
|
4
6
|
clientProviders: ClientProviders;
|
|
5
7
|
profileRoute?: RouteString;
|
|
6
8
|
onProfileSuccess: OnProfileSuccess;
|
|
7
9
|
onProfileError: OnProfileError;
|
|
8
10
|
};
|
|
9
|
-
export declare const profile: <UserType>({ clientProviders, profileRoute, onProfileSuccess, onProfileError }: ProfileProps) => Elysia<"", {
|
|
11
|
+
export declare const profile: <UserType>({ authSessionStore, clientProviders, profileRoute, onProfileSuccess, onProfileError }: ProfileProps<UserType>) => Elysia<"", {
|
|
10
12
|
decorator: {};
|
|
11
13
|
store: {
|
|
12
14
|
session: import("..").SessionRecord<UserType>;
|
|
@@ -33,7 +35,8 @@ export declare const profile: <UserType>({ clientProviders, profileRoute, onProf
|
|
|
33
35
|
headers: unknown;
|
|
34
36
|
response: {
|
|
35
37
|
400: "Cookies are missing" | "Session has no access token to fetch a profile";
|
|
36
|
-
401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "
|
|
38
|
+
401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
|
|
39
|
+
501: "Provider does not expose a profile endpoint";
|
|
37
40
|
200: Response;
|
|
38
41
|
422: {
|
|
39
42
|
type: "validation";
|
package/dist/routes/refresh.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const refresh: <UserType>({ authSessionStore, clientProviders, re
|
|
|
35
35
|
query: unknown;
|
|
36
36
|
headers: unknown;
|
|
37
37
|
response: {
|
|
38
|
-
400: "Cookies are missing" | "
|
|
38
|
+
400: "Cookies are missing" | "No refresh token found";
|
|
39
39
|
401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
|
|
40
40
|
501: "Provider is not refreshable";
|
|
41
41
|
200: Response;
|
package/dist/routes/revoke.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const revoke: <UserType>({ authSessionStore, clientProviders, rev
|
|
|
34
34
|
query: unknown;
|
|
35
35
|
headers: unknown;
|
|
36
36
|
response: {
|
|
37
|
-
400: "Cookies are missing" | "
|
|
37
|
+
400: "Cookies are missing" | "Session has no access token to revoke";
|
|
38
38
|
401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
|
|
39
39
|
501: "Provider does not support revocation";
|
|
40
40
|
200: Response;
|