stripe-react-native
stripe-react-native copied to clipboard
resetPaymentSheetCustomer function doesn't logout the user from Link Account
trafficstars
Describe the bug resetPaymentSheetCustomer from usePaymentSheet hook doesn't logout the user from the Link account user has logged-in with. To Reproduce Steps to reproduce the behavior:
const { resetPaymentSheetCustomer } = usePaymentSheet();
const _logout = useCallback(async () => {
await resetPaymentSheetCustomer();
dispatch(logOut());
}, [dispatch, resetPaymentSheetCustomer, navigation]);
Expected behavior User should be logged out from Link account and the next time i access the paymentSheet i should have to authenticate with Link account on the payment-sheet again but instead i see the Link account already logged-in.
Smartphone (please complete the following information):
- Device: [iPhoneSE]
- Version [0.38.1]