authts/react-oidc-context

signinRedirect with extraQueryParams

rwb196884 opened this issue · 2 comments

I hoped that this sort of thing might be possible

      .signinRedirect({
        extraQueryParams: { Foo: 'Bar' }
      })

But TypeScript says no.

Error TS2345 (TS) Argument of type '{ extraQueryParams: { Foo: string; }; }' is not assignable to parameter of type 'SigninRedirectArgs'.

Is there a way to make it work with TypeScript?

For what it's worth, that compiles fine for me in both an older 2.2 and the newer 3.0, and the parameters make their way to the idp authorize call.