Skip to content

Commit

Permalink
chore: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz committed May 28, 2024
1 parent fe67388 commit 644564f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/with-next-siwe-iron-session/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default function App({ Component, pageProps }: AppProps) {
createMessage: ({ nonce, address, chainId }) => {
return createSiweMessage({
address,
statement: 'Sign in with Ethereum to the app.',
chainId,
domain: window.location.host,
nonce,
Expand Down
6 changes: 3 additions & 3 deletions examples/with-next-siwe-iron-session/types/iron-session.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "iron-session";
import { Address } from "viem";
import 'iron-session';
import { Address } from 'viem';

declare module "iron-session" {
declare module 'iron-session' {
interface IronSessionData {
nonce?: string;
siwe?: { address: Address };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function RainbowKitSiweNextAuthProvider({
siweMessageOptions.version ?? defaultConfigurableOptions.version,
statement:
siweMessageOptions.statement ??
'Sign in with Ethereum to the app.',
defaultConfigurableOptions.statement,

// Spread custom SIWE message options provided by the consumer
...siweMessageOptions,
Expand Down
2 changes: 0 additions & 2 deletions packages/rainbowkit/src/components/SignIn/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ export function SignIn({
setState((x) => ({ ...x, status: 'verifying' }));

try {
// TODO: remove @ts-ignore
// @ts-ignore
const verified = await authAdapter.verify({ message, signature });

if (verified) {
Expand Down

0 comments on commit 644564f

Please sign in to comment.