# AZ703: Login refused

`authz.login_key()` or `authz.login_jwt()` didn't sign anyone in: the API key is unknown or revoked, the token's signature, time, issuer or audience is wrong, it names nobody who is active or a type that doesn't sign in, or JWT login isn't set up (`jwt_secret` in `authz.settings`, or the provider's keys stored with `authz.set_jwks`). An RS256 token is refused as one with a wrong signature when its `kid` names no stored key: the usual cause is a provider whose keys changed since they were stored (`rowstile help AZ719`). SQLSTATE 28000; answer 401, as the SDKs do, with the database's words.

Reported to the app, by the `authz.*` functions and the policy's rules: the code is in the error's HINT (`rowstile help AZ703`), and the SDKs' errors carry it as `code`.
