signinRedirect with extraQueryParams
rwb196884 opened this issue · 2 comments
rwb196884 commented
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?
dantheother commented
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.
pamapa commented
works here in my application and in the unit-test https://github.com/authts/oidc-client-ts/blob/faf3a8e5614c664004e90813d601b6ec8a3c335e/src/SigninRequest.test.ts#L218