updatd logout links and login flow for nextauth

This commit is contained in:
2022-04-19 12:25:13 +01:00
parent 511a5ed98d
commit 3b1a49e561
9 changed files with 81 additions and 45 deletions
+5 -1
View File
@@ -39,7 +39,7 @@ import {
} from "../../store/watchedCases/action";
import { setCookie } from "nookies";
import { useSession, signIn, signOut } from "next-auth/react";
import { getSession, useSession, signIn, signOut } from "next-auth/react";
const Home = (props) => {
const {
@@ -157,6 +157,10 @@ export const getServerSideProps = wrapper.getServerSideProps(
let loggedInUser = cookies.pinsUser;
let thisSession = await getSession(ctx);
console.log("nextAuth Session:", thisSession);
let providerConfig = await getProviderConfig();
store.dispatch(getGovGatewayConfig(providerConfig));