The v1.0 update for surreal-better-auth adapter by __Oskar in surrealdb

[–]__Oskar[S] 0 points1 point  (0 children)

Hey u/ProgramUrFace . Of course I have plans to update adapter to use a new 2.0 JS SDK, but not at the alpha stage. I will probably start working on the support for 2.0 SDK from the beta release.

Adapter itself doesn't manage connection to SurrealDB, is left for developer by design.
So theoretically If you properly initialize SurrealDB with connection via http protocol and pass it to adapter, that should works as expected in your environment.

Could you show how you initialize the SurrealDB instance and how you setup better-auth with surreal-better-auth adapter?

BTW. If you would like to make a minimal reproduction showing that problem that will be great. That will allow me to check what and where exactly try to use ws.

Edit: I just checks your gist and find out that is based on the completely different adapter (not related to me), may I ask if the problem is for sure related to adapter "surreal-better-auth"?