Google authentication .Net 7

117 Views Asked by At

How do i migrate this .Net 5 code to .Net 7:

services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
                .AddJwtBearer(jwt => jwt.UseGoogle(
                    clientId: "*********-**********.apps.googleusercontent.com"
                    ));

"JwtBearerOptions" does not contain a definition for "UseGoogle"

The code worked in .Net 5 with Angular. Now i have migrated to React and .Net 7 and new version of Google sign in.

0

There are 0 best solutions below