Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tokenType to credentials returned in Android #621

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

poovamraj
Copy link
Contributor

Changes

Android has been returning type in Credentials object instead of tokenType so we are adding this. We will be removing type in a major release as it could be a breaking change if we remove it now

References

#614

Testing

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

@poovamraj poovamraj requested a review from a team as a code owner April 26, 2023 11:26
@@ -29,7 +29,8 @@ public static ReadableMap toMap(Credentials credentials) {
map.putString(ID_TOKEN_KEY, credentials.getIdToken());
map.putString(SCOPE, credentials.getScope());
map.putString(REFRESH_TOKEN_KEY, credentials.getRefreshToken());
map.putString(TYPE_KEY, credentials.getType());
map.putString(TYPE_KEY, credentials.getType());//@deprecate This should be removed in next major (Reference - https://github.com/auth0/react-native-auth0/issues/614)
map.putString(TOKEN_TYPE_KEY, credentials.getType());
return map;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be updating any tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is android specific and we don't have native unit tests, no unit tests need to be updated

@poovamraj poovamraj merged commit c6a428f into master Apr 27, 2023
7 checks passed
@poovamraj poovamraj deleted the add-tokentype-in-android branch April 27, 2023 06:40
@poovamraj poovamraj mentioned this pull request Apr 27, 2023
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.

None yet

2 participants