Skip to content

Conversation

@AkshatG6
Copy link
Contributor

@AkshatG6 AkshatG6 commented Nov 7, 2025

This PR addresses a runtime crash that occurs when the dictionary returned by additionalTokenRefreshParametersForAuthSession: contains non-string values, leading to a type mismatch in GTMAppAuth. (Fixes #505)

This fix is implemented in GIDEMMSupport by iterating through the additionalParameters dictionary and converts values to strings with the following logic :-

  • NSString values: Preserves them as-is.
  • NSNumber values: Converts booleans to their string representation ("true" or "false") and all other numbers to their standard string value.
  • Additionally, the return type of updatedEMMParametersWithParameters and parametersWithParameters is updated from (NSDictionary *) to (NSDictionary<NSString *, NSString *> *).

This ensures that the dictionary returned to GTMAppAuth is always of the correct type.

@AkshatG6 AkshatG6 requested a review from mdmathias November 7, 2025 21:16
Copy link
Collaborator

@mdmathias mdmathias left a comment

Choose a reason for hiding this comment

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

Please make sure that the integration tests pass before submitting.

@AkshatG6 AkshatG6 merged commit 8dd1d46 into main Nov 7, 2025
19 of 20 checks passed
@AkshatG6 AkshatG6 deleted the gandhiakshat/refresh-params-mismatch-main branch November 7, 2025 22:42
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.

Login request crash

2 participants