Correctly set user "auth_data" after auth.update hook (#18310)

This commit is contained in:
Aiden Foxx
2023-04-26 21:01:03 +02:00
committed by GitHub
parent 2ced6b0a0b
commit 2f3fb229bc
2 changed files with 2 additions and 2 deletions

View File

@@ -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'],

View File

@@ -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'],