fix(SW-360): redirect verify step when authed as well
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { redirect } from "next/navigation"
|
||||
|
||||
import { overview } from "@/constants/routes/myPages"
|
||||
|
||||
import { auth } from "@/auth"
|
||||
import LoginButton from "@/components/Current/Header/LoginButton"
|
||||
import { getIntl } from "@/i18n"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
|
||||
import styles from "./signUpVerification.module.css"
|
||||
|
||||
@@ -9,6 +15,10 @@ export default async function SignUpVerification({
|
||||
title,
|
||||
subtitle,
|
||||
}: SignUpVerificationProps) {
|
||||
const session = await auth()
|
||||
if (session) {
|
||||
redirect(overview[getLang()])
|
||||
}
|
||||
const intl = await getIntl()
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user