How to use better auth from server

I am building an e-commerce store and I have an admin dashboard setup with uses nextjs and hono and store which uses nextjs

I want better auth to authenticate on frontend but in the backend/ admin I want to authorise for my api routes

How do I get started with it ?
Was this page helpful?