juhanakristian / remix-auth-microsoft

Microsoft authentication strategy for remix-auth
MIT License
37 stars 19 forks source link

No function overload found for operator '=' with args: [object Object], undefined #17

Closed NurbekGithub closed 1 year ago

NurbekGithub commented 1 year ago

I encountered this error message No function overload found for operator '=' with args: [object Object], undefined after login. No idea what this means, maybe someone had seen this before? my strategy config looks simple:

  {
    clientId: ...,
    clientSecret: ...,
    tenantId: ...,
    redirectUri: "http://localhost:3000/auth/microsoft/callback",
    scope: ["openid", "profile", "email"],
    prompt: "login",
  }
juhanakristian commented 1 year ago

Hi @NurbekGithub can you share more of your code? What does your verify callback (passed after config to MicrosoftStrategy) look like? Or can you share the loader you have in the successful login route?

NurbekGithub commented 1 year ago

This is due to db error. Nothing related to this awesome lib. Sorry for the trouble!