Providers
Auth React supplies the following providers that equip your application with session-related methods, variable objects, and connection capabilities:
AuthUiProvider
(optional for UI customization)QueryClientProvider
(from TanStack Query)
Behind the scenes, the library wraps Futureverse Auth logic and removes complexities, making it easier for your child components to access Hooks exposed by these providers to validate sessions and perform connections and signs.
We recommend you create a dedicated file named Providers.ts
for your providers.
Example Provider.ts
:
Provider.ts
:After importing and configuring FutureverseAuthProvider
, FutureverseWagmiProvider
, AuthUiProvider
and QueryClientProvider
, your Provider.ts
component will look similar to the example below.
Last updated