I have set up the plugin and on initialization I get that the route exists,
{ path: '/_users/oauth/:resource/:provider', method: 'get', handler: [Function: handler] },
however I always get an error after clicking on Sign in with Google.
payload.config.ts
... authPlugin({ name: '_users', allowOAuthAutoSignUp: true, usersCollectionSlug: _Users.slug, accountsCollectionSlug: Accounts.slug, successRedirectPath: '/admin/collections', errorRedirectPath: '/admin/auth/signin', providers: [ GoogleAuthProvider({ client_id: process.env.GOOGLE_CLIENT_ID as string, client_secret: process.env.GOOGLE_CLIENT_SECRET as string, }), ], }), ...
package.json
"payload": "3.80.0", "payload-auth-plugin": "^0.7.6",
I have set up the plugin and on initialization I get that the route exists,
{ path: '/_users/oauth/:resource/:provider', method: 'get', handler: [Function: handler] },however I always get an error after clicking on Sign in with Google.
payload.config.ts
... authPlugin({ name: '_users', allowOAuthAutoSignUp: true, usersCollectionSlug: _Users.slug, accountsCollectionSlug: Accounts.slug, successRedirectPath: '/admin/collections', errorRedirectPath: '/admin/auth/signin', providers: [ GoogleAuthProvider({ client_id: process.env.GOOGLE_CLIENT_ID as string, client_secret: process.env.GOOGLE_CLIENT_SECRET as string, }), ], }), ...package.json
"payload": "3.80.0", "payload-auth-plugin": "^0.7.6",