From 1e7afa68f2508317c70a2ad994c5a1291f1adde7 Mon Sep 17 00:00:00 2001 From: kaiying-stripe <110323300+kaiying-stripe@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:03:05 -0800 Subject: [PATCH] make logout function return promise that waits for logout finish (#91) --- src/shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.ts b/src/shared.ts index c35ae9c..1e9ae29 100644 --- a/src/shared.ts +++ b/src/shared.ts @@ -179,7 +179,7 @@ export const initStripeConnect = ( }, logout: () => { return stripeConnectInstance.then(instance => { - instance.logout(); + return instance.logout(); }); } };