# AZ714: Sign in first

A call that needs someone signed in ran in a transaction signed in as nobody (`authz.act_as(NULL, NULL)`, a visitor who hasn't signed in): an access request, deciding one, or an API key made for oneself. SQLSTATE 42501; answer 401, as the SDKs do, with the database's words. A transaction that never signed in says AZ701. Electric's route in the TypeScript SDK (`electricShape`) answers a shape request from nobody 401 with this code.

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