Managed to get auth working