@absolutejs/auth 0.67.0 → 0.68.0
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 +35 -2
- package/dist/cli/migrate.js.map +4 -4
- package/dist/htmx/index.js +38 -3
- package/dist/htmx/index.js.map +4 -4
- package/dist/index.js +7197 -5183
- package/dist/index.js.map +528 -143
- package/dist/linkedProviders/index.js +38 -3
- package/dist/linkedProviders/index.js.map +4 -4
- package/dist/manifest.d.ts +8 -7
- package/dist/manifest.js +7238 -5258
- package/dist/manifest.js.map +528 -143
- package/dist/manifest.json +29 -16
- package/dist/providers/clients.d.ts +113 -81
- package/dist/providers/index.js +38 -3
- package/dist/providers/index.js.map +4 -4
- package/dist/server.js +7361 -5347
- package/dist/server.js.map +528 -143
- package/package.json +2 -2
package/dist/cli/migrate.js
CHANGED
|
@@ -528,7 +528,7 @@ import { desc as desc5, eq as eq7, sql as drizzleSql } from "drizzle-orm";
|
|
|
528
528
|
import { drizzle as drizzle2 } from "drizzle-orm/neon-http";
|
|
529
529
|
import { jsonb as jsonb3, pgTable as pgTable7, text as text3, timestamp, varchar as varchar7 } from "drizzle-orm/pg-core";
|
|
530
530
|
|
|
531
|
-
//
|
|
531
|
+
// ../citra/dist/index.js
|
|
532
532
|
var NUM_GENERATOR_BYTES = 32;
|
|
533
533
|
var anilistProfileQuery = `query {
|
|
534
534
|
Viewer {
|
|
@@ -658,6 +658,39 @@ var providers = defineProviders({
|
|
|
658
658
|
url: "https://api.intra.42.fr/oauth/token"
|
|
659
659
|
}
|
|
660
660
|
},
|
|
661
|
+
absolutejs: {
|
|
662
|
+
authorizationUrl: (config) => `https://${config.baseURL ?? "absolutejs.ai"}/oauth2/authorize`,
|
|
663
|
+
email: ["email"],
|
|
664
|
+
fullName: ["name"],
|
|
665
|
+
isOIDC: true,
|
|
666
|
+
isRefreshable: true,
|
|
667
|
+
picture: ["picture"],
|
|
668
|
+
PKCEMethod: "S256",
|
|
669
|
+
profileRequest: {
|
|
670
|
+
authIn: "header",
|
|
671
|
+
encoding: "application/json",
|
|
672
|
+
method: "GET",
|
|
673
|
+
url: (config) => `https://${config.baseURL ?? "absolutejs.ai"}/oauth2/userinfo`
|
|
674
|
+
},
|
|
675
|
+
revocationRequest: {
|
|
676
|
+
authIn: "body",
|
|
677
|
+
encoding: "application/x-www-form-urlencoded",
|
|
678
|
+
tokenParamName: "token",
|
|
679
|
+
url: (config) => `https://${config.baseURL ?? "absolutejs.ai"}/oauth2/revoke`
|
|
680
|
+
},
|
|
681
|
+
scopeRequired: true,
|
|
682
|
+
subject: ["sub"],
|
|
683
|
+
subjectBySource: {
|
|
684
|
+
idToken: ["sub"],
|
|
685
|
+
profile: ["sub"]
|
|
686
|
+
},
|
|
687
|
+
subjectType: "string",
|
|
688
|
+
tokenRequest: {
|
|
689
|
+
authIn: "body",
|
|
690
|
+
encoding: "application/x-www-form-urlencoded",
|
|
691
|
+
url: (config) => `https://${config.baseURL ?? "absolutejs.ai"}/oauth2/token`
|
|
692
|
+
}
|
|
693
|
+
},
|
|
661
694
|
amazoncognito: {
|
|
662
695
|
authorizationUrl: "https://${domain}/oauth2/authorize",
|
|
663
696
|
isOIDC: true,
|
|
@@ -3568,5 +3601,5 @@ var main = async () => {
|
|
|
3568
3601
|
};
|
|
3569
3602
|
await main();
|
|
3570
3603
|
|
|
3571
|
-
//# debugId=
|
|
3604
|
+
//# debugId=E8C287EE4E57D4C364756E2164756E21
|
|
3572
3605
|
//# sourceMappingURL=migrate.js.map
|