openid / AppAuth-JS

JavaScript client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Apache License 2.0
975 stars 162 forks source link

Add State Param in Configuration #210

Open zhien95 opened 2 years ago

zhien95 commented 2 years ago

Hi, I am migrating from react-oidc-context v3 to react-oidc v5. The default value of state is undefined in v5 but our authentication service using Ory Hydra requires an valid state value.

I have tried adding state in extras prop but it is not working. Could we get an option to set our own state value in the configuration provided to OidcProvider?