braintree / braintree-android-drop-in

Braintree Drop-In SDK for Android
https://developers.braintreepayments.com/guides/drop-in/android/v2
MIT License
124 stars 78 forks source link

Expose invalidateClientToken() on BraintreeClient from DropInClient #367

Closed jbreitfeller-sfix closed 1 year ago

jbreitfeller-sfix commented 1 year ago

General information

Issue description

The DropInClient uses a BraintreeClient and passes the ClientTokenProvider to it. If I use a client token to initialize my DropInClient I can't update that token when a user of my app logs out and signs into another account that has a different client token. Currently the only workaround seems to be restarting the activity to allow creating a new DropInClient.

scannillo commented 1 year ago

👋 Hi @jbreitfeller-sfix. Thank you for raising this to our attention! We've addressed your recommendation in this PR https://github.com/braintree/braintree-android-drop-in/pull/369. We will update this issue once a release with the change has been made.

sshropshire commented 1 year ago

@jbreitfeller-sfix this will be in the next release. In the meantime, it is available in version 6.4.1-SNAPSHOT via the snapshot repository. We'll update here once it's officially released.

jbreitfeller-sfix commented 1 year ago

Thanks for taking action on this! Should be a great addition.

joeboyscout04 commented 1 year ago

Could we have an official release for this issue?

sshropshire commented 1 year ago

Hi @joeboyscout04 we have one final PR #372 we'd like to get in before doing an official release. We should have more information soon once it's available.

sshropshire commented 1 year ago

@joeboyscout04 this is now available in version 6.5.0.