fixing auth setup