Skip to content

Add missing refreshOn metadata#838

Merged
Avery-Dunn merged 1 commit intodevfrom
avdunn/missing-metadata
Jul 14, 2024
Merged

Add missing refreshOn metadata#838
Avery-Dunn merged 1 commit intodevfrom
avdunn/missing-metadata

Conversation

@Avery-Dunn
Copy link
Copy Markdown
Contributor

A new field of auth result metadata was recently added to AuthenticationResults in #829

However, as described in #836, there are some other code paths where the AuthenticationResult is built and was missing the metadata object in the builder.

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner July 12, 2024 20:33
.idToken(null)
.expiresOn(tokenProviderResult.getExpiresInSeconds())
.refreshOn(tokenProviderResult.getRefreshInSeconds())
.metadata(AuthenticationResultMetadata.builder()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

THis is ok, but how do you know it works? I.e. is there no testing that can be done here?

Copy link
Copy Markdown
Member

@bgavrilMS bgavrilMS left a comment

Choose a reason for hiding this comment

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

No unit tests.

@Avery-Dunn Avery-Dunn merged commit 7618c3d into dev Jul 14, 2024
@Avery-Dunn Avery-Dunn deleted the avdunn/missing-metadata branch July 15, 2024 19:20
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.

2 participants