# How to re-run Keycloak JavaScript adapter check-sso

**URL:** <https://forum.keycloak.org/t/how-to-re-run-keycloak-javascript-adapter-check-sso/24047>\
**Category:** Getting advice\
**Tags:** adapter-javascript, authentication\
**Created:** [January 11, 2024, 4:56pm UTC](https://forum.keycloak.org/t/how-to-re-run-keycloak-javascript-adapter-check-sso/24047 "2024-01-11T16:56:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgaiacs](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rgaiacs](https://forum.keycloak.org/u/rgaiacs)\
**Post date:** [January 11, 2024, 4:56pm UTC](https://forum.keycloak.org/t/how-to-re-run-keycloak-javascript-adapter-check-sso/24047/1 "2024-01-11T16:56:36Z")

</div>

I’m using Keycloak JavaScript adapter (version 22.0.5) in my single page web app. I execute

```auto
adapter = new Keycloak({
  url: ENV.APP.KEYCLOAK_URL,
  realm: ENV.APP.KEYCLOAK_REALM,
  clientId: ENV.APP.KEYCLOAK_CLIENT_ID,
});

const keycloak_window = window.open(
  // Documentation at https://www.keycloak.org/docs/latest/securing_apps/#methods
  adapter.createLoginUrl(),
  "_blank",
  "popup=true,width=300,height=300",
);

```

This starts Keycloak JavaScript adapter and open a new window for the user to provide their credentials. This works as expected.

I have more code to update the single page web app when the authentication is complete but it is missing a way to re-run Keycloak JavaScript adapter’s `check-sso` and update the properties. Without re-run the `check-sso`, the requests fail for different reasons. How can I re-run the `check-sso`?
