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
@ayersss Ever find a solution for this?
sadly, no
Is there any solution for it yet? Maybe in the new versions
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.