fix: authentication error with export import Closes #603 and #531 See merge request inject/frontend!500