You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] cognito - silent renew failed! Error: Error: no refresh token found, please login
The complete log:
https://github.com/moky80/test-angular-auth-oidc-client/blob/42f91852be14ae8974a65fe0a0c24484bf6ad9a9/log/20241230-cognito-authenticated-silentRenew_once_but_not_again.log#L1979C24-L1979C113
Steps to reproduce the behavior
- Setup Cognito User Pool: session token expiration 5 minutes, refresh token expiration 5 days.
- AuthConfig with `silentRenew` and `useRefreshToken` enabled, `allowUnsafeReuseRefreshToken` disabled: https://github.com/moky80/test-angular-auth-oidc-client/blob/42f91852be14ae8974a65fe0a0c24484bf6ad9a9/src/app/auth/auth.config.ts#L6
- Login a user: session and refresh tokens are gotten
- Wait 5 minutes: session token is expired, refresh token is used to get a new session token
- Wait another 5 minutes: session token is expired, see error message `[ERROR] cognito - silent renew failed! Error: Error: no refresh token found, please login` (this is expected because Cognito does not support refresh token rotation https://repost.aws/en/questions/QUohnyWmF9Tiy8YdJx52sgww/cognito-does-not-support-the-rotation-of-refresh-tokens), `isAuthenticated` remained `true` (this is not expected)
A clear and concise description of what you expected to happen.
`isAuthenticated` is set to `false` in this case
Additional context
No response
The text was updated successfully, but these errors were encountered:
moky80
changed the title
[Bug]: silentRenew with refresh token got new session token once but not any more (refresh token was removed)
[Bug]: silentRenew with refresh token got new session token once but not any more (no refresh token found)
Dec 30, 2024
moky80
changed the title
[Bug]: silentRenew with refresh token got new session token once but not any more (no refresh token found)
[Bug]: "[ERROR] cognito - silent renew failed" but "isAuthenticated" remained "true"
Jan 2, 2025
Version
19.0.0
Please provide a link to a minimal reproduction of the bug
moky80/test-angular-auth-oidc-client@42f9185
Please provide the exception or error you saw
Steps to reproduce the behavior
A clear and concise description of what you expected to happen.
Additional context
No response
The text was updated successfully, but these errors were encountered: