Skip to content

added authentication#448

Open
Joelsp19 wants to merge 1 commit intomainfrom
429-add-clerk-authentication
Open

added authentication#448
Joelsp19 wants to merge 1 commit intomainfrom
429-add-clerk-authentication

Conversation

@Joelsp19
Copy link
Copy Markdown
Collaborator

@Joelsp19 Joelsp19 commented Jun 3, 2025

closes #429

Added Authentication

  • Pretty much the same implementation as the last PR
  • Wrapped the ClerkProvider around the entire and use ProtectedRoute on Admin Pages
  • If we access AdminPages, it should redirect to signin page
  • Clerk resources such as { SignInPage, ProtectedRoute } are under the Clerk folder
  • We might need to test how it works on deployment branch (cuz maybe we need to include an API key)

From my understanding its ok to expose the frontend URL:

image

After someone signs up they still need admin access

  1. Login to Clerk through the Vera gmail account
  2. Go to the dashboard and select the user
  3. Go to public metadata and add:
    image
  4. Now we should be able to access admin pages

Examples of signin/signup

image
image

@Joelsp19 Joelsp19 linked an issue Jun 3, 2025 that may be closed by this pull request
10 tasks
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 3, 2025

Deploy Preview for calpolyvera ready!

Name Link
🔨 Latest commit d5c4eca
🔍 Latest deploy log https://app.netlify.com/projects/calpolyvera/deploys/683eb2ff834e6f0008f80eb3
😎 Deploy Preview https://deploy-preview-448--calpolyvera.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 project configuration.

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.

Add Clerk Authentication

1 participant