Login is not working when trying to authenticate with react sdk

I am using “https://YOUR_DOMAIN/authorize?
response_type=code|token&
client_id=YOUR_CLIENT_ID&
connection=CONNECTION&
redirect_uri=https://YOUR_APP/callback&
state=STATE”
method to initiate login due to some reason. As soon as I login it return a callback in the callback route I m handling with handleRedirectCallback function provided by auth0 sap SDK but its not working the handleRedirectCallback says query is not provided