Ways to authenticate non-js api?

I went through the plugin section of the Better Auth docs and ive noticed that authenticating non-js APIs can be done using two methods: JWT or Bearer tokens. right?

I just want to cross-check to ensure I understand correctly:

  1. If I use a JWT token, how should I verify it? Should the verification be done using the BETTER_AUTH_SECRET?
  2. If I opt for the Bearer token (is it essentially the session token?), how should I verify it? Do I need to check my database on every request to confirm the presence of the Bearer token before verifying it? Is there any other method to do so?
Was this page helpful?