question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some problems with route authorization

See original GitHub issue

To Reproduce https://github.com/anthonychu/anthonychu-test-vueapp2/blob/ad07cbd66c5845b28a5b4b2118c28f98f6bee6c4/staticwebapp.config.json

Clone above repo

npm i
npm run build
cd api
npm i
cd ..
swa start dist --api api

Go to http://localhost:4280 and log in. /.auth/me verifies logged in

  • / still returning 401
  • /api/info still returning 401

CLI v0.3.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
runceelcommented, Apr 20, 2021

@manekinekko Thanks! I’m looking forward to the release of next version.

1reaction
anthonychucommented, Apr 14, 2021

@manekinekko This didn’t seem to fix the issue for me. Can you try cloning the repo and see if you can reproduce with the latest build from main?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protected Routes and Authentication with React Router - ui.dev
Protected routes let us choose which routes users can visit based on whether they are logged in.
Read more >
React Router Authorization - Stack Overflow
"Called when a route is about to be entered. It provides the next router state and a function to redirect to another path....
Read more >
Complete guide to authentication with React Router v6
Learn how to handle user authentication with React Router v6 and gain a better overall understanding of how React Router works.
Read more >
Implementing Protected Route and Authentication in React-JS
For this tutorial, I'll be showing how to set up an authentication route and protect other routes from been accessed by unauthorized users....
Read more >
The New Way To Create Protected Routes With React Router V6
Updated version of how to create protected routes in react router v6.Check out the article that goes with this: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found