docs/content/docs/reference/errors/no_code.mdx
This error occurs during the OAuth callback when the authorization code is missing from the request.
In the Authorization Code flow, the provider redirects back to your /api/auth/callback route with a
code parameter (and typically state). Without the code, Better Auth cannot exchange it for tokens,
so the request is rejected.
error/error_description are present.code./api/auth/callback route (protocol, host, path).code or error parameters are present.