Login
Authenticates an admin user and returns a short-lived JWT access token. The rotatable refresh token is set in an HttpOnly cookie — it is not included in the response body.
Dispatches by the provider field to a strategy registered in
Spree.admin_authentication_strategies. When provider is omitted it
defaults to email, which uses the built-in email/password strategy.
To plug in a third-party identity provider (Okta, Azure AD, Google
Workspace SSO, a custom JWT issuer, SAML, etc.), register a
Spree::Authentication::Strategies::BaseStrategy subclass under a
provider key, then send { "provider": "<your_key>", ... } with the
fields your strategy requires. The endpoint returns the same Spree-issued
JWT regardless of which strategy authenticated the request.
Authorizations
Secret API key for admin access

