Switch the authentication manager over to Swift.