mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-01-30 13:50:55 +08:00
feat(api): Add provider to linkAccountEvent.
This commit is contained in:
parent
60c3cae71e
commit
a90f10b68d
@ -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,
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user