Which is proper way for api authentication for nextJs api? taking more time to give response - Better Auth