feat(auth): Revamp authentication setup (#7387)

* chore: Clean up authentication middlewares

* chore: Rename AuthUser to AuthIdentity

* feat: Define link between user, customer, and auth identity

* feat: Use links for auth, update auth context content

* fix: Adjust user create command with new auth setup

* fix: Make auth login more dynamic, review fixes

* fix: Change test assertions for created by
This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-05-22 10:27:32 +02:00
1 parent b7df447682
commit 5ede560f70
88 files changed
+887 -1014

No files matched your search

+12
View File
@@ -86,4 +86,16 @@ export const LINKS = {
Modules.FULFILLMENT,
"fulfillment_id"
),
UserAuth: composeLinkName(
Modules.USER,
"user_id",
Modules.AUTH,
"auth_identity_id"
),
CustomerAuth: composeLinkName(
Modules.CUSTOMER,
"customer_id",
Modules.AUTH,
"auth_identity_id"
),
}