Skip to content

Commit

Permalink
updated login page
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijayendher Gatla authored and Vijayendher Gatla committed Sep 4, 2023
1 parent d67c57f commit d3e59a7
Show file tree
Hide file tree
Showing 21 changed files with 989 additions and 501 deletions.
1 change: 1 addition & 0 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ NEXT_PUBLIC_UPLOAD_API_KEY=
# Optional, if you're doing rate limiting
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

13 changes: 13 additions & 0 deletions app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import NextAuth from "next-auth"
import GoogleProvider from 'next-auth/providers/google'

const handler = NextAuth({
providers:[
GoogleProvider({
clientId:process.env.GOOGLE_CLIENT_ID,
clientSecret:process.env.GOOGLE_CLIENT_SECRET,
}),
]
})

export { handler as GET, handler as POST }
274 changes: 0 additions & 274 deletions app/dream/page.tsx

This file was deleted.

93 changes: 0 additions & 93 deletions app/generate/route.ts

This file was deleted.

8 changes: 8 additions & 0 deletions app/home/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";
import { SessionProvider } from "next-auth/react";

export default function PostLayout({
children, // will be a page or nested layout
}) {
return <SessionProvider>{children}</SessionProvider>;
}
Loading

0 comments on commit d3e59a7

Please sign in to comment.