Skip to content

Commit a488a91

Browse files
authored
Merge pull request #109 from nileshdev0707/development
Added secrete hash for next auth
2 parents 26a3de5 + 95b4191 commit a488a91

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib/auth.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const authOptions = {
8686
}
8787
}),
8888
],
89+
secret: process.env.SECRET,
8990
callbacks: {
9091
async signIn() {
9192
// Return true to allow sign in and false to block sign in.

src/views/login/login.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const LoginComponent = () => {
1717

1818
const handleLoginWithGoogle = async () => {
1919
try {
20+
console.log("handleLoginWithGoogle")
2021
setLoading(true)
2122
const googleSignInResponse = await signIn("cognito_google")
2223
if (googleSignInResponse?.error) {

0 commit comments

Comments
 (0)