authts / oidc-client-ts

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
https://authts.github.io/oidc-client-ts/
Apache License 2.0
1.26k stars 191 forks source link

login_required error in web browser console when calling signinRedirectCallback #1450

Open quan1997ap opened 3 months ago

quan1997ap commented 3 months ago

Hi team. Thank for your library. I'm using your lib in my project. I have issue with refeshToken. After user login, following error occurred twice in the web browser console:

ErrorResponse: login_required
    at ResponseValidator._processSigninState (http://localhost:4200/vendor.js:112250:13)
    at http://localhost:4200/vendor.js:112141:15
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (http://localhost:4200/vendor.js:116388:24)
    at _next (http://localhost:4200/vendor.js:116410:9)
    at http://localhost:4200/vendor.js:116417:7
    at new ZoneAwarePromise (http://localhost:4200/polyfills.js:13207:21)
    at http://localhost:4200/vendor.js:116406:12
    at ResponseValidator.validateSigninResponse (http://localhost:4200/vendor.js:112154:7)
    at http://localhost:4200/vendor.js:112897:32

I can't fix it. Can you help me. Thanks. Sorry about my english.

pamapa commented 3 months ago

Looks like your IdP is not happy with the refresh token you pass back...

quan1997ap commented 3 months ago

Looks like your IdP is not happy with the refresh token you pass back...

How can I fix it? It only keycloak config right?