Closed qwaiks closed 10 months ago
@qwaiks Do you still need this feature? It seems like a straightforward implementation, so I could give it a try if you're still in need of that
@chyiiiiiiiiiiii
Do you think a loggedIn
getter is a worthy addition to the package?
Personally, I think one could easily keep track of the auth state of the user in their own Flutter implementation, using the result of the login()
method, once the auth state survives the entire lifecycle of the app.
yeah that makes sense and seems fairly easy to implement. think it would come in handy for the community. theres currently an error that thrown when the logout()
is called and the sign in fails.
@qwaiks Could you provide more info on the exception thrown in this case? Maybe we should address this case too
Yeah, sure. The state-getter is helpful. We could have check functions.
@qwaiks Could you provide more info on the exception thrown in this case? Maybe we should address this case too
It throws an exception with the message "Zendesk::logoutUser Failed" thats because the user is not signed in
_Exception (Exception: Zendesk::logoutUser failed)
@qwaiks Could you provide more info on the exception thrown in this case? Maybe we should address this case too
It throws an exception with the message "Zendesk::logoutUser Failed" thats because the user is not signed in
_Exception (Exception: Zendesk::logoutUser failed)
I would argue that this exception is being thrown as expected, nevertheless, just opened a PR adding the login status checker: https://github.com/chyiiiiiiiiiiii/flutter_zendesk_messaging/pull/33 Let me know if this solves your use case
Can we have a field to check if the is logged in.