fix: made withAuthWrapper working
fix: - made wrapper working - used it in protected routes & removed it from public routes
This commit is contained in:
parent
362e90800d
commit
a58abecc0e
5 changed files with 24 additions and 23 deletions
|
|
@ -1,7 +1,8 @@
|
|||
// next imports
|
||||
import type { NextPageContext } from "next";
|
||||
import Router from "next/router";
|
||||
|
||||
const redirect = (context: any, target: any) => {
|
||||
const redirect = (context: NextPageContext, target: any) => {
|
||||
if (context.res) {
|
||||
// server
|
||||
// 303: "See other"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue