feat(api): Add provider to linkAccountEvent.

This commit is contained in:
Gervwyk 2022-07-08 13:43:56 +02:00
parent 60c3cae71e
commit a90f10b68d

View File

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