auth.api is for server-side usage. it calls the Better Auth API endpoints.authClient.getSession is for client-side usage.auth.api provides a bit more performance efficiency on the server by avoiding extra HTTP overhead, while the client method is optimized for browser or external API calls.