mozilla / fx-private-relay-add-on

Companion add-on for Firefox Relay. Keep your email safe from hackers and trackers. Make an email alias with one click, and keep your address to yourself.
https://addons.mozilla.org/en-US/firefox/addon/private-relay
Mozilla Public License 2.0
67 stars 14 forks source link

Fix MPP-2857 - Add logic to prompt user to login if any authentication information is missing #487

Closed maxxcrawford closed 1 year ago

maxxcrawford commented 1 year ago

Summary

This PR addresses a possible migration issue where the profileID variable (saved in local storage) is missing. This can result in a broken/loading state in the popup. The fix here is to check if that variable is accessible during the init function. If it's missing, we prompt the user to re-login in to add it back correctly.

Fixes:

Steps to reproduce

Screenshots

N/A