is there a function like generateLink() for OAuth

I'm working on a site where user's can add some Google and Microsoft integrations when the user is already signed in. I would like to write my own API endpoint to validate the accessToken and make the appropriate db calls. Is there a similar function like supabase.auth.admin.generateLink() to do that?
Was this page helpful?