-
Notifications
You must be signed in to change notification settings - Fork 5
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 #94 from ReCoded-Org/i83-add_favicon+_title_+_fix_…
…nouh_s_img_+_change_hadri_s_img_+_work_on_session_handling I83 add favicon+ title + fix nouh s img + change hadri s img + work on session handling
- Loading branch information
Showing
14 changed files
with
104 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
NEXT_PUBLIC_GOOGLE_MAP_KEY=AIzaSyAnHNX_kANW6oxjdcDoOs8VVwDAOsbA9ZY | ||
<<<<<<< HEAD | ||
GITHUB_ID= 06278944971ada50241b | ||
GITHUB_SECRET = 0a489dbefa1825e83f17ea3d5bdeeee9bc78f7c3 | ||
======= | ||
NEXT_PUBLIC_GOOGLE_MAP_KEY=AIzaSyAnHNX_kANW6oxjdcDoOs8VVwDAOsbA9ZY | ||
>>>>>>> 219fb38c827154d2218e531b50b21e0d94eef5af |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,19 +1,28 @@ | ||
import NextAuth from "next-auth"; | ||
import GoogleProvider from "next-auth/providers/google"; | ||
// import NextAuth from "next-auth"; | ||
// import GitHubProvider from "next-auth/providers/github"; | ||
|
||
export default NextAuth({ | ||
providers: [ | ||
GoogleProvider({ | ||
clientId: process.env.GOOGLE_CLIENT_ID, | ||
clientSecret: process.env.GOOGLE_CLIENT_SECRET, | ||
}), | ||
], | ||
callbacks: { | ||
async signIn({ account, profile }) { | ||
if (account.provider === "google") { | ||
return profile.email_verified && profile.email.endsWith(".edu"); | ||
} | ||
return true; | ||
}, | ||
}, | ||
}); | ||
// export default NextAuth({ | ||
// providers: [ | ||
// GitHubProvider({ | ||
// clientId: process.env.GITHUB_ID, | ||
// clientSecret: process.env.GITHUB_SECRET, | ||
// profile(profile) { | ||
// return { | ||
// id: profile.id.toString(), | ||
// name: profile.name || profile.login, | ||
// email: profile.email, | ||
// image: profile.avatar_url, | ||
// }; | ||
// }, | ||
// }), | ||
// ], | ||
// callbacks: { | ||
// async jwt({ token }) { | ||
// token.userRole = "admin"; | ||
// return token; | ||
// }, | ||
// }, | ||
// pages: { | ||
// signIn: "/sign-in", | ||
// }, | ||
// }); |
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
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