useCrossmintAuth()
Access Crossmint authentication state and actions:login, logout, the current user, jwt, and auth status. Must be used within a CrossmintAuthProvider.
Returns
The underlying Crossmint auth client instance.
Fetch and refresh the current authenticated user.
Current JWT authentication token, if authenticated.
Trigger the login flow. Optionally pass a default email.
Configured login methods.
Initiate a login flow with the specified OAuth provider (e.g. “google”, “twitter”).
Log the user out and clear the session.
Authentication status: “logged-in” | “logged-out” | “in-progress” | “initializing”.
The currently authenticated user object.

