Skip to content
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

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

Zarrarabid
Copy link
Contributor

  • Added Protected Route logic
  • Added Token Logic

Copy link

netlify bot commented Feb 8, 2025

Deploy Preview for friendly-crumble-3832b4 ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/friendly-crumble-3832b4/deploys/67a787a3bbb97da6b19077f7
😎 Deploy Preview https://deploy-preview-74--friendly-crumble-3832b4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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";
Copy link
Contributor

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")
}
}, [])
Copy link
Contributor

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants