NextAuth - OneLogin flow mocking
Im trying to mock OneLogin login flow using WireMock server. I can easily get the flow working until I submit credentials on the mocked OneLogin page and after it redirects I get this error and can't get pass it the whole day ;/
1 Reply
WireMock at
/oidc/2/token
according to the onelogin specifications https://developers.onelogin.com/openid-connect/api/authorization-code-grant#response-elements returns
I generated id_token
at https://jwt.io/ but nextauth rejects the token failed to validate JWT signature
Any suggestions how I could tackle this so nextauth would validate successfully the token and bypass me back to the application in development?