Try it
Check the whole login in your browser: sign in, reload and sign out.
Try it
-
Start your app (
npm run dev, ornpm startwith CRA and Angular) and open it onlocalhost. - 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.
- Reload the page: you're still signed in.
- 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 overhttps. Check that theapiKeyis 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: falseand 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.

