After some playing around, I realised that it was bad data in the cookies. Now I am able to access the OIDC link now, however I am still not able to login.
After I allow connection to my API app, I have redirected to following URL: http://localhost:5173/callback?code=<>&state=<>
Post which, I am redirected to http://localhost:5173/?_cb=1768653810325.
After this nothing seems to happen, i.e. I am still not logged in.
On inspecting I realise that I am facing CORS error:
However, I have added the links in my connected app:
