-
Notifications
You must be signed in to change notification settings - Fork 62
Error npx port auto(8080) different from redirect URI port. #157
Open
Description
Error npx port auto(8080) different from redirect URI port.
In case someone gets the same thing that happens to me 😊.
In my case npx http-server assign a different port than 8080 sometimes 8081/8082 depending on the ports it has busy. This causes it to redirect to another service after getting the token and throwing an error.
Error scenario
Service up on 8081
DiferentPortNpx
Error when redirecting
Error8080
My solution
Manually assign a port that is free.
-
Modify package.json.
PackageMod -
Modify redirection aad.portal.azure configuration.
SpaaadappMod -
Modify redirectUri in archive auth.js.
AuthjsMod
Raise the service again and it worked :P
200OK
Activity
Metadata
Metadata
Assignees
Labels
No labels