Merged in fix/my-stay-webview-2 (pull request #2191)
fix: webview - mystay - check if we have webviewToken * fix: webview - mystay - check if we have webviewToken * Cleanup Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { login } from "@/constants/routes/handleAuth"
|
||||
import { signup } from "@/constants/routes/signup"
|
||||
|
||||
import { auth } from "@/auth"
|
||||
import Card from "@/components/TempDesignSystem/Card"
|
||||
import { getIntl } from "@/i18n"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
import { isValidSession } from "@/utils/session"
|
||||
import { isLoggedInUser } from "@/utils/isLoggedInUser"
|
||||
|
||||
import styles from "./authCard.module.css"
|
||||
|
||||
export default async function EmployeeBenefitsAuthCard() {
|
||||
const session = await auth()
|
||||
const intl = await getIntl()
|
||||
|
||||
const lang = getLang()
|
||||
|
||||
if (isValidSession(session)) {
|
||||
const isLoggedIn = await isLoggedInUser()
|
||||
|
||||
if (isLoggedIn) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user