Document new option and add to example in README

This commit is contained in:
Mat Munn 2021-07-16 07:05:09 +10:00
parent e234090c67
commit e2c3813cce

View file

@ -49,6 +49,10 @@ const metadata = {
redirect_uri="https://darrelopry.com/svelte-oidc/" redirect_uri="https://darrelopry.com/svelte-oidc/"
post_logout_redirect_uri="https://darrelopry.com/svelte-oidc/" post_logout_redirect_uri="https://darrelopry.com/svelte-oidc/"
metadata={metadata} metadata={metadata}
extraOptions={{
mergeClaims: true,
resource: "some_identifier",
}}
> >
<LoginButton>Login</LoginButton> <LoginButton>Login</LoginButton>
@ -113,6 +117,7 @@ the migration hard.
* redirect_uri - default: window.location.href * redirect_uri - default: window.location.href
* post_logout_redirect_uri - override the default url that OIDC will redirect to after logout. default: window.location.href * post_logout_redirect_uri - override the default url that OIDC will redirect to after logout. default: window.location.href
* metadata - set default metadata or metadata missing from authority. * metadata - set default metadata or metadata missing from authority.
* extraOptions - An object of extra options that will be passed to the underlying OpenID Connect client. Valid values are available [here](https://github.com/IdentityModel/oidc-client-js/wiki#other-optional-settings).
* LoginButton - log out the current context * LoginButton - log out the current context