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:
@@ -15,7 +15,7 @@ export const POST = async (
|
||||
selector: { id: req.params.id },
|
||||
revoke: {
|
||||
...req.validatedBody,
|
||||
revoked_by: req.auth.actor_id,
|
||||
revoked_by: req.auth_context.actor_id,
|
||||
},
|
||||
},
|
||||
throwOnError: false,
|
||||
|
||||
@@ -41,7 +41,7 @@ export const POST = async (
|
||||
const input = [
|
||||
{
|
||||
...req.validatedBody,
|
||||
created_by: req.auth.actor_id,
|
||||
created_by: req.auth_context.actor_id,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user