Hello all. I am new to Auth0 so my question might look trivial.
I tried to use Auth0 for my react.js application and here is my code for redirect-url:
export const redirectAuth0URL =
{ ${window.location.href}dashboard}`
in my index.js:
<Auth0Provider redirectUri={redirectAuth0URL} />
So the
redirectAuth0URL
is : “http://localhost:3000/dashboard”. However, it cannot redirect me to dashboard and kind of throws an error.
Suprisingly, if I change the code above the below, it works:
export const redirectAuth0URL = window.location.href + "dashboard"
I wonder what the issue is with using template literal.