-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/protected route token #74
base: development
Are you sure you want to change the base?
Conversation
Zarrarabid
commented
Feb 8, 2025
- Added Protected Route logic
- Added Token Logic
✅ Deploy Preview for friendly-crumble-3832b4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
import { Theme } from "@radix-ui/themes" | ||
import NavBar from "./Navbar" | ||
import { redirect} from "next/navigation"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unwanted additions
window.alert("You are not Authorized") | ||
redirect("/auth/signin") | ||
} | ||
}, []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this on every page behind user auth ?