Account linking extra info

I have a question regarding account linking (using Google as the provider). Right now, I’m able to link an additional account with a different email address by using allowDifferentEmails: true. it seems like there’s no way to extend the account schema. I think it’s pretty common to have information like the name and email of a newly linked Google account, so that on the client side — when using authClient.listAccounts — I can display each account’s name, email, or other relevant info. I tried using the hooks and databaseHooks, but I couldn’t get it to work.
4 Replies
iPheNoMeNaL-oG
iPheNoMeNaL-oG5mo ago
@ayersss Ever find a solution for this?
ayersss
ayersssOP5mo ago
sadly, no
Kapara
Kapara2mo ago
Is there any solution for it yet? Maybe in the new versions
FalconiZzare
FalconiZzare2mo ago
Maybe you can utilize the after hook and store the user information to a separate table after a successful linking. This approach won't require you to extend accounts schema.

Did you find this page helpful?