@absolutejs/auth 0.55.0 → 0.55.1

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.
@@ -33,8 +33,8 @@ export declare const ssoDiscoveryRoute: ({ getOrganizationByEmailDomain, ssoConn
33
33
  headers: unknown;
34
34
  response: {
35
35
  400: "An \"email\" query parameter is required" | "A valid email address is required";
36
- 200: Response;
37
36
  404: "No SSO organization is configured for this email domain" | "No SSO connection is configured for this organization";
37
+ 200: Response;
38
38
  422: {
39
39
  type: "validation";
40
40
  on: string;
@@ -33,8 +33,8 @@ export declare const oidcSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
33
33
  query: unknown;
34
34
  headers: unknown;
35
35
  response: {
36
- 200: Response;
37
36
  404: "No OIDC connection is configured for this organization";
37
+ 200: Response;
38
38
  422: {
39
39
  type: "validation";
40
40
  on: string;
@@ -61,8 +61,8 @@ export declare const oidcSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
61
61
  headers: unknown;
62
62
  response: {
63
63
  400: "SSO session cookies are missing" | "Invalid SSO callback request" | "SSO organization mismatch" | "OIDC token response is missing an id_token";
64
- 200: Response;
65
64
  404: "No OIDC connection is configured for this organization";
65
+ 200: Response;
66
66
  422: {
67
67
  type: "validation";
68
68
  on: string;
@@ -35,8 +35,8 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
35
35
  query: unknown;
36
36
  headers: unknown;
37
37
  response: {
38
- 200: Response;
39
38
  404: "No SAML connection is configured for this organization";
39
+ 200: Response;
40
40
  422: {
41
41
  type: "validation";
42
42
  on: string;
@@ -62,8 +62,8 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
62
62
  query: unknown;
63
63
  headers: unknown;
64
64
  response: {
65
- 200: Response;
66
65
  404: "No SAML connection is configured for this organization";
66
+ 200: Response;
67
67
  422: {
68
68
  type: "validation";
69
69
  on: string;
@@ -87,8 +87,8 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
87
87
  query: unknown;
88
88
  headers: unknown;
89
89
  response: {
90
- 200: Response;
91
90
  404: "No SAML connection is configured for this organization";
91
+ 200: Response;
92
92
  422: {
93
93
  type: "validation";
94
94
  on: string;
@@ -141,9 +141,9 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
141
141
  headers: unknown;
142
142
  response: {
143
143
  400: "Missing SAMLRequest or SAMLResponse" | "Invalid SAML LogoutRequest";
144
- 200: Response;
145
144
  501: "SAML Single Logout is not configured";
146
145
  404: "No SAML connection is configured for this organization";
146
+ 200: Response;
147
147
  422: {
148
148
  type: "validation";
149
149
  on: string;
package/dist/utils.d.ts CHANGED
@@ -21,7 +21,7 @@ export declare const resolveCookieSecure: (override?: boolean) => boolean;
21
21
  export declare const resolveOAuthAuthorization: ({ authProvider, providerConfiguration, providerInstance, tokenResponse, now }: {
22
22
  authProvider: string;
23
23
  providerConfiguration?: ProviderConfig;
24
- providerInstance: OAuth2Client<ProviderOption>;
24
+ providerInstance: Pick<OAuth2Client<ProviderOption>, "fetchUserProfile">;
25
25
  tokenResponse: OAuth2TokenResponse;
26
26
  now?: number;
27
27
  }) => Promise<ResolvedOAuthAuthorization>;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.55.0",
2
+ "version": "0.55.1",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/absolutejs/absolute-auth.git"
7
+ "url": "git+https://github.com/absolutejs/absolute-auth.git"
8
8
  },
9
9
  "homepage": "https://github.com/absolutejs/absolute-auth",
10
10
  "bugs": {
@@ -12,12 +12,12 @@
12
12
  },
13
13
  "main": "./dist/index.js",
14
14
  "bin": {
15
- "absolute-auth": "./dist/cli/migrate.js"
15
+ "absolute-auth": "dist/cli/migrate.js"
16
16
  },
17
17
  "license": "BSL-1.1",
18
18
  "author": "Alex Kahn",
19
19
  "scripts": {
20
- "build": "rm -rf dist && bun build src/index.ts src/agents/index.ts src/saml.ts src/webauthn.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/client/vue.ts src/client/solid.ts src/client/svelte.ts src/plugins/index.ts src/providers/index.ts src/manifest.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js && absolute-manifest emit",
20
+ "build": "rm -rf dist && bun build src/index.ts src/server.ts src/agents/index.ts src/saml.ts src/webauthn.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/client/vue.ts src/client/solid.ts src/client/svelte.ts src/plugins/index.ts src/providers/index.ts src/manifest.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js && absolute-manifest emit",
21
21
  "config": "absolute config",
22
22
  "test": "bun test",
23
23
  "format": "absolute prettier --write",
@@ -114,6 +114,11 @@
114
114
  "types": "./dist/index.d.ts",
115
115
  "require": "./dist/index.js"
116
116
  },
117
+ "./server": {
118
+ "import": "./dist/server.js",
119
+ "types": "./dist/server.d.ts",
120
+ "require": "./dist/server.js"
121
+ },
117
122
  "./client": {
118
123
  "import": "./dist/client/index.js",
119
124
  "types": "./dist/client/index.d.ts",