SSO /authorize call failing with 400

Hi All,

I am trying to make the auth0 SSO working across different apps.
App1 → localhost:3000 . Redirect uri given to auth0provider is localhost:4200
App2 → localhost:4200

Auth0 login works from localhost:3000 and once login it redirects to localhost:4200 also.
However in App2 wherever we are retrieving token using getAccessTokenSilently. it is not working.
It is calling https://dev-s5frio84.us.auth0.com/authorize?client_id=XXXXXXXXX&redirect_uri=http%3A%2F%2Flocalhost%3A4200&scope=openid%20profile%20email&response_type=code&response_mode=web_message&state=bFVaTWE0WUVBd3FLUVpmdVE0MGhHZllVUHJtVV9EeF9VZVdxQ2hMWFpJLg%3D%3D&nonce=V2JTbmlKaHFjSUI5VVBwMXJ1MW1OU1d5VjJLTUU1WlFuT2NSenJjQzQtZg%3D%3D&code_challenge=rSPAaLvCyLV3gj6WJ7uk7JfbKqra9GJtlIWNKfPjuAY&code_challenge_method=S256&prompt=none&auth0Client=eyJuYW1lIjoiYXV0aDAtcmVhY3QiLCJ2ZXJzaW9uIjoiMS44LjAifQ%3D%3D

which returns 400 error.

Is there anything else to be done to enable SSO across multiple apps?
Please guide

Thanks