Having problems establishing connection between server and client methods of authentication logic - Better Auth