I was struggling for a while to understand why after declaring 2 differents CredentialsProviders, my request were redirected to the default NextAuths sign in page.

The problem was, undeclared ids to differentiate them.

return await NextAuth(req, res, {
    providers: [
      CredentialsProvider(
        {
          id: "googlewp", <----------------------- THIS...
          name: "googlewp",
          credentials: {
            token: {},
            // token: { label: "googleToken", type: "text", placeholder: "miser google" },
          },
          async authorize(credentials, req) {
            ....
            return user
            if (user.error) {
              throw new Error(JSON.stringify(user.error))
            } else {
              user.id = user.ID
              // userR.user_login = user.user_login
              return user
            }
          }
        }),

      CredentialsProvider(
        {
          id: "credentials",<----------------------------- AND THIS
          name: "credentials",
}

Source:

https://next-auth.js.org/providers/credentials

Multiple providers section