Login
Signs a seller in and returns a short-lived JWT access token carrying the
seller_api audience. The rotatable refresh token is set in an HttpOnly
cookie — it is not included in the response body.
The response lists every seller this user may act for. Pick one and send
its id as X-Spree-Seller-Id on every subsequent request; nothing else
on this API answers until a seller is named.
Authenticating is not on its own enough. A store’s own staff share the same user class, so a user who runs no seller is refused — issuing a token would hand out an audience its holder can do nothing with.
The provider field selects the authentication method. When omitted it
defaults to email. Sellers and store staff read different provider
registries, so a marketplace can require SSO for its own back office
while still letting sellers sign in with a password.

