Skip to content

assertProceduresGuarded

assertProceduresGuarded(router): void

Throws an AuthConfigError naming every procedure with no access rule, every one marked public that also asks for a session, every one that is not a mutation and carries writesCookies, and every lazy router (which this cannot load to check).

AnyRouter

void