Skip to content

Route not found "/api/_users/oauth/authorization/google" #156

@s-ileris

Description

@s-ileris

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions