Next-Auth v4 Google Provider Migration

Previously in v3 we would provide scope and authorizationUrl changes like this.

nextAuthGoogleProviderV3

Now with V4 we would do something like this.

nextAuthGoogleProviderV4

The changes can be seen in two primary areas.

  1. The import for the provider changes from next-auth/providers to next-auth/providers/google.
  2. We stop using authorizationUrl and instead modify things directly on the params value of authorization.

home