 	twoFactor = require('./2fa')(deps, opts)
 	exports = {}
 
-	normalizeError = (err) ->
+	normalizeAuthError = (err) ->
 		if err.statusCode == 401
 			return new errors.ResinNotLoggedIn()
-		else if err.code == 'ResinMalformedToken' and not savedToken?
+		else if err.code == 'ResinMalformedToken'
 			return new errors.ResinNotLoggedIn()
 		else
 			return err

		.then (savedToken) ->
			return savedToken
		.catch (err) ->
			throw normalizeError(err)
		.asCallback(callback)

	###*

			.tap (body) ->
				userDetailsCache = body
			.catch (err) ->
				throw normalizeAuthError(err)

	###*
	# @summary Return current logged in username
