Starts the OAuth 2.1 Authorization Code flow with PKCE.
Renders a login and consent form. After the user authenticates
and selects a store, the browser is redirected to redirect_uri
with an authorization code and state.
OAuth client identifier from /oauth/register
Registered redirect URI
Must be code
code Space-separated scopes (e.g. products:read orders:write)
Opaque CSRF token returned in the redirect
PKCE code challenge (Base64-URL of SHA-256 hash)
S256 HTML login/consent form
The response is of type string.