error signing in with box

I'm trying to sign in with box , but facing some unusual issue shown in the image

here's my code

    plugins: [
    genericOAuth({
      config: [
        {
          providerId: "box",
          clientId: process.env.BOX_CLIENT_ID as string,
          clientSecret: process.env.BOX_CLIENT_SECRET  as string,
          authorizationUrl: "https://account.box.com/api/oauth2/authorize",
          tokenUrl: "https://api.box.com/oauth2/token"
        }
      ]
    })
    ]



export const authClient = createAuthClient({
    baseURL: process.env.NEXT_PUBLIC_BACKEND_URL,
    plugins: [
    genericOAuthClient()
    ]
});


  await authClient.signIn.oauth2({
    providerId: "box",
    callbackURL: clientEnv.NEXT_PUBLIC_CALLBACK_URL,
  })
Screenshot_from_2025-06-28_21-33-23.png
Was this page helpful?