Cannot resolve AddAuthentication()

I'm setting up a Minimal API in C# with .NET 6.0 but cannot seem to be able to use the AddAuthentication() method when configuring my services. Is there some package I've forgotten to install maybe?
Was this page helpful?