Sign Out of OIDC middleware

We have the users sign in to our website with SignIn widget.
When we call oktaSignIn.signOut(), this removes the local session, but how can we remove the remote session? (ie user can still access the okta webpage).

We saw on a gitpage that opening a window to https://{your org URL}login/signout’ works
and clears local + remote session but is there a better for signing a user out just using javascript in the browser?