Use localhost:3011 for LOCAL to allow you to login to a local cli.
This fixes a bad-request error that would result from Auth0 storing the user's auth code along with the redirectURL provided by the originating requester.
Issue:
you log in from the CLI with SERVERLESS_PLATFORM_STAGE=local sls login
that bounces you through localhost:3000 frontend -> auth0
Auth0 STORES the domain localhost:3000 along with your auth code to fetch tokens
Auth0 redirects you back to localhost:3000 frontend
localhost:3000 frontend passes that code to the server (in sdk versions 2.1.0 and earlier)
CLI then requests from api.serverless-dev.com for tokens with your code
DEV dashboard calls out to auth0 with your code and sets the redirectURL to dashboard.serverless-dev.com (Dev frontend)
auth0 returns a bad client ID because dashboard.serverless-dev.com is the redirect URL, not localhost:3000
Use localhost:3011 for LOCAL to allow you to login to a local cli. This fixes a bad-request error that would result from Auth0 storing the user's auth code along with the redirectURL provided by the originating requester.
Issue: