-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from spruceid/feat/updated-dependencies
Removes rainbow kit and update dependencies
- Loading branch information
Showing
7 changed files
with
591 additions
and
920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,35 @@ | ||
{ | ||
"name": "next-auth-example", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "An example project for NextAuth.js", | ||
"description": "An example project for NextAuth.js with Next.js", | ||
"repository": "https://github.com/nextauthjs/next-auth-example.git", | ||
"bugs": { | ||
"url": "https://github.com/nextauthjs/next-auth/issues" | ||
}, | ||
"homepage": "https://next-auth-example.vercel.app", | ||
"main": "", | ||
"scripts": { | ||
"dev": "next", | ||
"build": "next build", | ||
"start": "next start", | ||
"types": "tsc --noEmit" | ||
"start": "next start" | ||
}, | ||
"author": "Iain Collins <[email protected]>", | ||
"contributors": [ | ||
"Balázs Orbán <[email protected]>", | ||
"Nico Domino <[email protected]>", | ||
"Lluis Agusti <[email protected]>" | ||
], | ||
"license": "ISC", | ||
"dependencies": { | ||
"@rainbow-me/rainbowkit": "^0.4.1", | ||
"ethers": "^5.6.8", | ||
"next": "^12.0.11-canary.4", | ||
"next-auth": "4.10.3", | ||
"nodemailer": "^6.6.3", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"ethers": "^5.7.1", | ||
"next": "latest", | ||
"next-auth": "^4.12.2", | ||
"nodemailer": "^6", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"siwe": "^2.0.5", | ||
"wagmi": "^0.6.6" | ||
"wagmi": "^0.6.7" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.14", | ||
"@types/react": "^17.0.39", | ||
"typescript": "^4.5.5" | ||
}, | ||
"prettier": { | ||
"semi": false | ||
"@types/node": "^17", | ||
"@types/react": "^18.0.15", | ||
"typescript": "^4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,33 @@ | ||
import { Session } from "next-auth" | ||
import { SessionProvider } from "next-auth/react" | ||
import type { AppProps } from "next/app" | ||
import { WagmiConfig, createClient, configureChains, chain } from "wagmi" | ||
import { publicProvider } from "wagmi/providers/public" | ||
import { connectorsForWallets, wallet } from "@rainbow-me/rainbowkit" | ||
import { RainbowKitProvider } from "@rainbow-me/rainbowkit" | ||
import "./styles.css" | ||
|
||
export const { chains, provider } = configureChains( | ||
[chain.mainnet, chain.polygon, chain.optimism, chain.arbitrum], | ||
[publicProvider()] | ||
) | ||
|
||
const connectors = connectorsForWallets([ | ||
{ | ||
groupName: "Recommended", | ||
wallets: [ | ||
wallet.injected({ chains }), | ||
wallet.rainbow({ chains }), | ||
wallet.walletConnect({ chains }), | ||
wallet.metaMask({ chains }), | ||
], | ||
}, | ||
]) | ||
|
||
const client = createClient({ | ||
autoConnect: true, | ||
provider, | ||
connectors, | ||
}) | ||
|
||
// Use of the <SessionProvider> is mandatory to allow components that call | ||
// `useSession()` anywhere in your application to access the `session` object. | ||
export default function App({ Component, pageProps }: AppProps) { | ||
export default function App({ | ||
Component, | ||
pageProps, | ||
}: AppProps<{ | ||
session: Session; | ||
}>) { | ||
return ( | ||
<WagmiConfig client={client}> | ||
<RainbowKitProvider chains={chains}> | ||
<SessionProvider session={pageProps.session} refetchInterval={0}> | ||
<Component {...pageProps} /> | ||
</SessionProvider> | ||
</RainbowKitProvider> | ||
<SessionProvider session={pageProps.session} refetchInterval={0}> | ||
<Component {...pageProps} /> | ||
</SessionProvider> | ||
</WagmiConfig> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,4 @@ export default async function auth(req: any, res: any) { | |
}, | ||
}, | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.