How to use `auth` method inside hooks

How can I use the methods on
auth
, like auth.api.createOrganization inside auth.emailVerification.afterEmailVerification setup?

Typescript shouts about the variable referencing itself
Was this page helpful?