Custom API Authentication

I am using next.js app router.
And want to authenticate custom fetch api using better auth.
How to do this?

I tried bearer plugin but bearer token is not being set for social logins.
Was this page helpful?