use getSession() from @lib/auth everywhere (#563)

This commit is contained in:
Alex Johansson authored and GitHub committed 2021-09-03 21:51:21 +01:00
1 parent 1cdb449ecc
commit 2f1ede9bcd
27 files changed
+37 -27

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
import { HeadSeo } from "@components/seo/head-seo";
import Link from "next/link";
import React from "react";
import { getCsrfToken, getSession } from "next-auth/client";
import { getCsrfToken } from "next-auth/client";
import debounce from "lodash.debounce";
import { getSession } from "@lib/auth";
export default function ForgotPassword({ csrfToken }) {
const [loading, setLoading] = React.useState(false);
+2 -1
View File
@@ -1,6 +1,7 @@
import { HeadSeo } from "@components/seo/head-seo";
import Link from "next/link";
import { getCsrfToken, getSession } from "next-auth/client";
import { getCsrfToken } from "next-auth/client";
import { getSession } from "@lib/auth";
export default function Login({ csrfToken }) {
return (