fix(api): Should be passing profile, not provider.

This commit is contained in:
Gervwyk 2022-07-08 13:56:03 +02:00
parent a90f10b68d
commit 02f9fe0d5e

View File

@ -25,12 +25,12 @@ function createLinkAccountEvent(context, { authConfig, plugins }) {
if (linkAccountPlugins.length === 0) return undefined;
async function linkAccountEvent({ account, provider, user }) {
async function linkAccountEvent({ account, profile, user }) {
for (const plugin of linkAccountPlugins) {
await plugin.fn({
properties: plugin.properties ?? {},
account,
provider,
profile,
user,
});
}