@absolutejs/auth 0.65.5 → 0.65.6
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 +2 -2
- package/dist/cli/migrate.js.map +3 -3
- package/dist/index.js +7 -3
- package/dist/index.js.map +4 -4
- package/dist/server.js +7 -3
- package/dist/server.js.map +4 -4
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -32568,7 +32568,7 @@ var createNeonLinkedProviderGrantStore = (db) => ({
|
|
|
32568
32568
|
owner_ref: grant.ownerRef,
|
|
32569
32569
|
provider_family: grant.providerFamily,
|
|
32570
32570
|
provider_subject: grant.providerSubject,
|
|
32571
|
-
refresh_token_ciphertext:
|
|
32571
|
+
refresh_token_ciphertext: sql`coalesce(excluded.refresh_token_ciphertext, ${linkedProviderGrantsTable.refresh_token_ciphertext})`,
|
|
32572
32572
|
status: grant.status,
|
|
32573
32573
|
token_type: grant.tokenType ?? null,
|
|
32574
32574
|
updated_at: new Date(grant.updatedAt)
|
|
@@ -32627,7 +32627,11 @@ var createInMemoryLinkedProviderStores = (input = {}) => {
|
|
|
32627
32627
|
[...bindings.entries()].filter(([, binding]) => binding.grantId === id).forEach(([bindingId2]) => bindings.delete(bindingId2));
|
|
32628
32628
|
},
|
|
32629
32629
|
saveGrant: async (grant) => {
|
|
32630
|
-
grants.
|
|
32630
|
+
const existing = grants.get(grant.id);
|
|
32631
|
+
grants.set(grant.id, cloneGrant({
|
|
32632
|
+
...grant,
|
|
32633
|
+
refreshTokenCiphertext: grant.refreshTokenCiphertext ?? existing?.refreshTokenCiphertext
|
|
32634
|
+
}));
|
|
32631
32635
|
}
|
|
32632
32636
|
};
|
|
32633
32637
|
const bindingStore = {
|
|
@@ -38898,5 +38902,5 @@ export {
|
|
|
38898
38902
|
VerificationProviderError
|
|
38899
38903
|
};
|
|
38900
38904
|
|
|
38901
|
-
//# debugId=
|
|
38905
|
+
//# debugId=9E267BACCB0FD73264756E2164756E21
|
|
38902
38906
|
//# sourceMappingURL=server.js.map
|