Withdraws every grant, as each user would theirs, and drops the codes not
yet traded, so that no account here stays signed in elsewhere: main.ts
calls it at startup when FEDERATION.outgoing is off. Returns how many
grants it withdrew.
Return Type
Promise<number>
Usage
import { withdrawAllGrants } from "api/services/identity-provider-service.ts";