mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Correctly set user "auth_data" after auth.update hook (#18310)
This commit is contained in:
@@ -159,7 +159,7 @@ export class OAuth2AuthDriver extends LocalAuthDriver {
|
||||
// user that is about to be updated
|
||||
const updatedUserPayload = await emitter.emitFilter(
|
||||
`auth.update`,
|
||||
{},
|
||||
{ auth_data: userPayload.auth_data },
|
||||
{
|
||||
identifier,
|
||||
provider: this.config['provider'],
|
||||
|
||||
@@ -185,7 +185,7 @@ export class OpenIDAuthDriver extends LocalAuthDriver {
|
||||
// user that is about to be updated
|
||||
const updatedUserPayload = await emitter.emitFilter(
|
||||
`auth.update`,
|
||||
{},
|
||||
{ auth_data: userPayload.auth_data },
|
||||
{
|
||||
identifier,
|
||||
provider: this.config['provider'],
|
||||
|
||||
Reference in New Issue
Block a user