stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

resetPaymentSheetCustomer function doesn't logout the user from Link Account

Open Mubashirkhan opened this issue 1 year ago • 0 comments
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]

Mubashirkhan avatar Jul 03 '24 11:07 Mubashirkhan