@absolutejs/auth 0.47.0 → 0.48.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.
- package/dist/cli/migrate.js +28 -4
- package/dist/cli/migrate.js.map +4 -4
- package/dist/htmx/index.js +22 -1
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.js +131 -23
- package/dist/index.js.map +7 -7
- package/dist/providers/clients.d.ts +3 -3
- package/dist/providers/index.js +22 -1
- package/dist/providers/index.js.map +3 -3
- package/dist/routes/authorize.d.ts +2 -2
- package/dist/session/types.d.ts +9 -0
- package/dist/typebox.d.ts +1 -1
- package/package.json +6 -2
package/dist/cli/migrate.js
CHANGED
|
@@ -831,6 +831,27 @@ var providers = defineProviders({
|
|
|
831
831
|
url: "https://api.close.com/oauth2/token/"
|
|
832
832
|
}
|
|
833
833
|
},
|
|
834
|
+
calendly: {
|
|
835
|
+
authorizationUrl: "https://auth.calendly.com/oauth/authorize",
|
|
836
|
+
email: ["resource", "email"],
|
|
837
|
+
fullName: ["resource", "name"],
|
|
838
|
+
isOIDC: false,
|
|
839
|
+
isRefreshable: true,
|
|
840
|
+
profileRequest: {
|
|
841
|
+
authIn: "header",
|
|
842
|
+
encoding: "application/json",
|
|
843
|
+
method: "GET",
|
|
844
|
+
url: "https://api.calendly.com/users/me"
|
|
845
|
+
},
|
|
846
|
+
scopeRequired: false,
|
|
847
|
+
subject: ["resource", "uri"],
|
|
848
|
+
subjectType: "string",
|
|
849
|
+
tokenRequest: {
|
|
850
|
+
authIn: "body",
|
|
851
|
+
encoding: "application/x-www-form-urlencoded",
|
|
852
|
+
url: "https://auth.calendly.com/oauth/token"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
834
855
|
coinbase: {
|
|
835
856
|
authorizationUrl: "https://www.coinbase.com/oauth/authorize",
|
|
836
857
|
isOIDC: false,
|
|
@@ -2647,10 +2668,11 @@ var scimTokensTable = pgTable14("auth_scim_tokens", {
|
|
|
2647
2668
|
|
|
2648
2669
|
// src/session/neonStore.ts
|
|
2649
2670
|
import { neon as neon4 } from "@neondatabase/serverless";
|
|
2650
|
-
import { eq as eq15 } from "drizzle-orm";
|
|
2671
|
+
import { eq as eq15, lt as lt4 } from "drizzle-orm";
|
|
2651
2672
|
import { drizzle as drizzle3 } from "drizzle-orm/neon-http";
|
|
2652
2673
|
import {
|
|
2653
2674
|
bigint as bigint13,
|
|
2675
|
+
index,
|
|
2654
2676
|
jsonb as jsonb8,
|
|
2655
2677
|
pgTable as pgTable15,
|
|
2656
2678
|
text as text6,
|
|
@@ -2666,7 +2688,7 @@ var authSessionsTable = pgTable15("auth_sessions", {
|
|
|
2666
2688
|
refresh_token: text6("refresh_token"),
|
|
2667
2689
|
updated_at: timestamp2("updated_at").notNull().defaultNow(),
|
|
2668
2690
|
user_json: jsonb8("user_json").$type().notNull()
|
|
2669
|
-
});
|
|
2691
|
+
}, (table) => [index("auth_sessions_expires_at_idx").on(table.expires_at_ms)]);
|
|
2670
2692
|
var authUnregisteredSessionsTable = pgTable15("auth_unregistered_sessions", {
|
|
2671
2693
|
access_token: text6("access_token"),
|
|
2672
2694
|
created_at: timestamp2("created_at").notNull().defaultNow(),
|
|
@@ -2676,7 +2698,9 @@ var authUnregisteredSessionsTable = pgTable15("auth_unregistered_sessions", {
|
|
|
2676
2698
|
session_information_json: jsonb8("session_information_json").$type(),
|
|
2677
2699
|
updated_at: timestamp2("updated_at").notNull().defaultNow(),
|
|
2678
2700
|
user_identity_json: jsonb8("user_identity_json").$type()
|
|
2679
|
-
})
|
|
2701
|
+
}, (table) => [
|
|
2702
|
+
index("auth_unregistered_sessions_expires_at_idx").on(table.expires_at_ms)
|
|
2703
|
+
]);
|
|
2680
2704
|
|
|
2681
2705
|
// src/sso/postgresSamlServiceProviderStore.ts
|
|
2682
2706
|
import { eq as eq16 } from "drizzle-orm";
|
|
@@ -3135,5 +3159,5 @@ var main = async () => {
|
|
|
3135
3159
|
};
|
|
3136
3160
|
await main();
|
|
3137
3161
|
|
|
3138
|
-
//# debugId=
|
|
3162
|
+
//# debugId=2EAA867B1010DA6A64756E2164756E21
|
|
3139
3163
|
//# sourceMappingURL=migrate.js.map
|