-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pnpm 9+, patch @auth/typeorm-adapter not passing roles
- Loading branch information
Showing
7 changed files
with
16,392 additions
and
14,499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@alp/internal-core": "*", | ||
"@alp/internal-core": "workspace:*", | ||
"@faker-js/faker": "^8.0.2", | ||
"@nx/devkit": "^16.9.1", | ||
"@nx/eslint-plugin": "^16.9.1", | ||
|
@@ -89,6 +89,9 @@ | |
"pnpm": { | ||
"overrides": { | ||
"superjson": "1.13.1" | ||
}, | ||
"patchedDependencies": { | ||
"@auth/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/index.js b/index.js | ||
index f8d34785aa2c60c874ab0fa64766ba533d52befe..ffe861208b47c4ee5dc33ed37964d859e3b6dcfe 100644 | ||
--- a/index.js | ||
+++ b/index.js | ||
@@ -243,6 +243,7 @@ export function TypeORMAdapter(dataSource, options) { | ||
const c = { | ||
dataSource, | ||
entities: { | ||
+ ...dataSource.entities, | ||
UserEntity: entities?.UserEntity ?? defaultEntities.UserEntity, | ||
SessionEntity: entities?.SessionEntity ?? defaultEntities.SessionEntity, | ||
AccountEntity: entities?.AccountEntity ?? defaultEntities.AccountEntity, |
Large diffs are not rendered by default.
Oops, something went wrong.