Removed unused imports
Adds get_auth to exports and fixes unbound locals