FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers
https://commerce.nearform.com/open-source/react-native-app-auth
MIT License
1.96k stars 438 forks source link

Unable to await results of "logout" function on iOS. No promise is returned? #959

Closed emilstepanian closed 1 month ago

emilstepanian commented 2 months ago

Issue

Hi,

I am trying to await the results of logout function, but there's no callback returning, even when the modal is opened and closed and I'm technically signed out. The app gets stuck and there's no error thrown.

Neither can I run logic in .then() function chained to logout(). The app continues and never executes 'then' function

I am able to await and get the endSessionResults back on Android

Example with await and then:

Skærmbillede 2024-04-11 kl  16 23 02 Skærmbillede 2024-04-11 kl  16 23 56

Environment