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

Update demo with login/logout #149

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update demo with login/logout #149

wants to merge 2 commits into from

Conversation

geoffrich
Copy link
Owner

@geoffrich geoffrich commented Jul 29, 2023

Closes #102 [ WIP ]

  • Add "User" page to demo that can only be accessed when logged in. Redirect to login page if accessed when not logged in.
  • Figure out local auth setup - will need to downgrade SWA CLI version to 1.1.3 for testing
  • Documentation
    • Using platform.clientPrincipal in load functions to protect routes (or deriving locals value from it)
    • Linking to login/logout pages (applying data-sveltekit-reload)
    • Displaying the logged-in user info
    • Document local auth setup
    • Caveat: does not work for prerendered pages
    • Note that config-based setup not fully compatible, link route-level config issue
    • Remove existing docs caveat about clientPrincipal only something being available

@github-actions
Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-desert-00b80111e-149.westus2.2.azurestaticapps.net

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.

Investigate Static Web App Auth + SvelteKit
1 participant