Using OAuth2 but not for signIn

Hi, I'm working on a nextjs project for my company and I need to set up an oauth2 connection with one of our partners (who isn't one of the better-auth default social providers).

My problem is that I don't want to use oauth to connect the user but only to be able to use the token to access my partner's api.

Do you recommend that I use better-auth (and if so, how can I get custom behaviour (especially for receiving tokens that I need to store in a specific place)?

Thanks for your help
Was this page helpful?