resolve auth errors and provide memory auth repo