Skip to content

Commit

Permalink
"fix" type again
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcherry committed Jan 26, 2024
1 parent a2a2cd8 commit c6508d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Binary file modified web/bun.lockb
Binary file not shown.
28 changes: 14 additions & 14 deletions web/src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import { createAppClient, viemConnector } from "@farcaster/auth-client";
import NextAuth from "next-auth";
import CredentialsProvider from "next-auth/providers/credentials";
import { createAppClient, viemConnector } from '@farcaster/auth-client';
import NextAuth from 'next-auth';
import CredentialsProvider from 'next-auth/providers/credentials';

import { getProfile } from "../../../../lib/services/user";
import { getProfile } from '../../../../lib/services/user';

export const authOptions = {
providers: [
CredentialsProvider({
name: "Sign in with Farcaster",
name: 'Sign in with Farcaster',
credentials: {
message: {
label: "Message",
type: "text",
placeholder: "0x0",
label: 'Message',
type: 'text',
placeholder: '0x0',
},
signature: {
label: "Signature",
type: "text",
placeholder: "0x0",
label: 'Signature',
type: 'text',
placeholder: '0x0',
},
csrfToken: {
type: "text",
type: 'text',
},
},
async authorize(credentials) {
Expand All @@ -31,7 +31,7 @@ export const authOptions = {
const verifyResponse = await appClient.verifySignInMessage({
message: credentials!.message as string,
signature: credentials!.signature as `0x${string}`,
domain: "example.com",
domain: 'example.com',
nonce: credentials!.csrfToken,
});

Expand All @@ -56,7 +56,7 @@ export const authOptions = {
},
};

const auth = NextAuth(authOptions);
const auth = NextAuth(authOptions) as any;

export const GET = auth;
export const POST = auth;

0 comments on commit c6508d9

Please sign in to comment.