fxaclient's getSessionToken should not throw in case of a missing sessionToken
Categories
(Application Services :: Fxa Client, defect, P3)
Tracking
(Not tracked)
People
(Reporter: markh, Unassigned)
References
(Blocks 1 open bug)
Details
From github: https://github.com/mozilla/application-services/issues/2202.
From the method's docs:
@throws FxaException Will send you an exception if there is no session token set
.However, since this method is simply reading some data from in-memory state, simply returning
String?
will suffice here, and will make dealing with this method much easier.┆Issue is synchronized with this Jira Task
┆Epic: Moving fxa-client functionality out of android-components
Change performed by the Move to Bugzilla add-on.
Reporter | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
This seems reasonable to me, but it's fairly old and I'm not sure if we should change the API at this point. Maybe it would make more sense to add a new method that didn't throw. Also maybe it's not that big of an issue for the android-components code anymore. I think we should rethink this once the code has been migrated to app-services.
Updated•1 year ago
|
Description
•