nexfetch_auth()
The main factory function.
async def nexfetch_auth(
*,
secret: str,
database: DBAdapter | None = None,
trusted_origins: list[str] | None = None,
oauth_providers: list[OAuthProvider] | None = None,
email_and_password: EmailPasswordConfig | None = None,
session: SessionConfig | None = None,
rate_limit: RateLimitConfig | None = None,
email_provider: EmailProvider | None = None,
plugins: list[NexfetchAuthPlugin] | None = None,
) -> NexfetchAuth
Returns a NexfetchAuth instance with .app (the ASGI app), .adapter, and .context.