diff --git a/src/components/Sidebar/SidebarContent.tsx b/src/components/Sidebar/SidebarContent.tsx index 81e1cbb6..8ac78328 100644 --- a/src/components/Sidebar/SidebarContent.tsx +++ b/src/components/Sidebar/SidebarContent.tsx @@ -92,7 +92,8 @@ const renderUserCard = ( export const SidebarContent = (props: SidebarContentProps) => { return (
{`${props.otherUser.role.charAt( 0 - )}${props.otherUser.role.slice(1).toLowerCase()} ${ - props.otherUser.id - }`}
+ )}${props.otherUser.role.slice(1).toLowerCase()}`} ) : ({props.otherUser.preferredName}
)} diff --git a/src/pages/api/auth/[...nextauth].ts b/src/pages/api/auth/[...nextauth].ts index fb3c2b0c..0c2bf190 100644 --- a/src/pages/api/auth/[...nextauth].ts +++ b/src/pages/api/auth/[...nextauth].ts @@ -6,7 +6,6 @@ import { serverEnv } from "../../../utils/env/server"; import AzureADProvider from "next-auth/providers/azure-ad"; import GoogleProvider from "next-auth/providers/google"; import { Adapter } from "next-auth/adapters"; -import { browserEnv } from "../../../utils/env/browser"; const CustomPrismaAdapter = (p: typeof prisma): Adapter => { return { @@ -50,14 +49,10 @@ export const authOptions: NextAuthOptions = { }, adapter: CustomPrismaAdapter(prisma), providers: [ - ...(browserEnv.NEXT_PUBLIC_ENV === "staging" - ? [ - GoogleProvider({ - clientId: serverEnv.GOOGLE_CLIENT_ID, - clientSecret: serverEnv.GOOGLE_CLIENT_SECRET, - }), - ] - : []), + GoogleProvider({ + clientId: serverEnv.GOOGLE_CLIENT_ID, + clientSecret: serverEnv.GOOGLE_CLIENT_SECRET, + }), AzureADProvider({ clientId: serverEnv.AZURE_CLIENT_ID, clientSecret: serverEnv.AZURE_CLIENT_SECRET, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ac760434..7b292445 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -207,8 +207,8 @@ const Home: NextPage