final user account polish
This commit is contained in:
parent
aba6727306
commit
d05dc3eab6
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,8 @@ export default async function SignInPage({
|
||||||
|
|
||||||
// If reauth is requested, always render the form (no redirect).
|
// If reauth is requested, always render the form (no redirect).
|
||||||
if (!reauth) {
|
if (!reauth) {
|
||||||
const at = cookies().get("ma_at")?.value;
|
const ck = await cookies();
|
||||||
|
const at = ck.get("ma_at")?.value;
|
||||||
if (at) redirect("/portal");
|
if (at) redirect("/portal");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue