switches auth layer