Try it

Check the whole login in your browser: sign in, reload and sign out.

Try it

  1. Start your app (npm run dev, or npm start with CRA and Angular) and open it on localhost.
  2. Press the Block-Auth button and sign in. The login opens in a popup, or in the same tab if your browser blocks popups. The button turns into your profile menu.
  3. Reload the page: you're still signed in.
  4. Sign out from the profile menu: the button shows the sign-in again.

If it does, it works in development. The last step is Go live: the same, with your production key and domain.

If it does not work

  • The login fails right away: the key and the address don't match. Development keys only work on localhost, and Production keys only on your validated domain over https. Check that the apiKey is the one for this environment.
  • After signing in in the same tab you're back signed out: Block-Auth sends you back to the root of your app (/), which must load your app with the widget config. See Login with a redirect.
  • After reloading you're signed out: check that the config has authEndpoint: false and that you're on the latest version of the widget package.
  • The button has no styles or the logo is broken: your server sends a Content-Security-Policy. Allow the widget as in Go live.