Last active
July 6, 2023 14:25
-
-
Save avizyt/313362cae17517f86b6f59bd852b18b6 to your computer and use it in GitHub Desktop.
nextjs
This file contains hidden or 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
// Authentication session | |
import { getServerSession } from "next-auth/next"; | |
import { NextAuthOptions, User } from "next-auth"; | |
import { AdapterUser } from "next-auth/adapters"; | |
import GoogleProvider from "next-auth/providers/google"; | |
import jsonwebtoken from "jsonwebtoken"; | |
import { JWT } from "next-auth/jwt"; | |
import Google from "next-auth/providers/google"; | |
export const authOptions: NextAuthOptions = { | |
providers: [ | |
GoogleProvider({ | |
clientId: "", | |
clientSecret: "", | |
}), | |
], | |
jwt: { | |
encode: ({ secret, token }) => {}, | |
decode: async ({ secret, token }) => {}, | |
}, | |
theme: { | |
colorScheme: "light", | |
logo: "/logo.png", | |
}, | |
callbacks: { | |
async session({ session }) {}, | |
async signIn({ user }) {}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment