Skip to content

Conversation

@no-felix
Copy link

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[x] Other... Please describe: Test-only fix

What is the current behavior?

A unit test in AutoRefreshTokenService's spec incorrectly assigns logoutOptions in the "login" inactivity timeout test, causing an expectation failure because mockKeycloak.login is invoked with undefined.

Issue Number: N/A

What is the new behavior?

Correct the test to set loginOptions: { redirectUri: 'testLoginUri' } for the "login" inactivity timeout case.
The test now verifies that mockKeycloak.login is called with the expected options.
No production code changes.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@no-felix no-felix marked this pull request as ready for review November 28, 2025 17:42
@no-felix no-felix mentioned this pull request Nov 28, 2025
3 tasks
Copy link

@jarczykkonrad jarczykkonrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Looked at this as well

@mauriciovigolo mauriciovigolo self-assigned this Dec 11, 2025
it('should login if user is inactive and inactivity timeout is set to "login"', async () => {
service['options'].onInactivityTimeout = 'login';
service['options'].logoutOptions = { redirectUri: 'testLoginUri' };
service['options'].loginOptions = { redirectUri: 'testLoginUri' };
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@mauriciovigolo
Copy link
Owner

mauriciovigolo commented Dec 11, 2025

Hi @no-felix,
I will fix the pipeline this weekend and merge the fix.
Thank you! 🙂

@mauriciovigolo mauriciovigolo added this to the v21.0.0 milestone Dec 15, 2025
@Masmarino
Copy link

@mauriciovigolo When do you think you will release v21? :)

@ilotam
Copy link

ilotam commented Dec 22, 2025

@mauriciovigolo Hi! Sorry, will you release v21 before christmas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants