Open Bug 1865150 Opened 1 year ago Updated 1 year ago

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.

Assignee: nobody → bdeankawamura
Blocks: 1867795
Status: NEW → ASSIGNED

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.

Assignee: bdeankawamura → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.