@calvin You may take a look in the console log where the page redirect to. You can check it from browser inspect. Make sure you issuer URL in your code is the same with your auth server.
Also, I attached guides here for your reference:
The OpenID Connect Core specification could be helpful.
Related issue discussion.