Skip to content

Commit

Permalink
Merge pull request #89 from EveripediaNetwork/update-docs
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
Tolu-Mals authored Dec 13, 2024
2 parents 4f8307d + c3dd5dc commit ba2b1d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,28 @@ const config: Config = {
export default config;


2. Wrap your application with the RainbowKitClientProvider in your layout file:
2. Wrap your application with the IqLoginProvider in your layout file:

```tsx
// app/layout.tsx
import { RainbowKitClientProvider } from "@everipedia/iq-login";
import { polygon } from 'wagmi/chains';
import { headers } from "next/headers";
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const cookie = (await headers()).get("cookie") || "";
return (
<html lang="en">
<body>
<IqLoginProvider
chain={polygon} // Required: Specify the chain to use
web3AuthProjectId="YOUR_PROJECT_ID" // Required: Web3Auth Project ID
cookie={cookie}
>
{children}
</IqLoginProvider>
Expand Down

0 comments on commit ba2b1d1

Please sign in to comment.