jwtbutler 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/_js/_build/script.js +685 -765
- package/package.json +16 -30
- package/_js/_build/_helpers.js +0 -43
package/README.md
CHANGED
|
@@ -19,7 +19,6 @@ jwtbutler is a helper library for setting up a single sign on with jwt in a mult
|
|
|
19
19
|
- includes a timeout for broken connections
|
|
20
20
|
- syncs cookies via iframes through postmessage
|
|
21
21
|
- works also without single sign on
|
|
22
|
-
- full ie11 support
|
|
23
22
|
- full chrome support (SameSite=None)
|
|
24
23
|
|
|
25
24
|
## requirements
|
|
@@ -63,14 +62,13 @@ const api = new jwtbutler({
|
|
|
63
62
|
});
|
|
64
63
|
```
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
add the public sitekey:
|
|
65
|
+
`jwtbutler` can also render captchas (currently `hCaptcha` and `Cloudflare Turnstile`). note that `jwtbutler` only renders the widget and sends the resulting token to `/login` — your auth server must verify that token (e.g. [simpleauth](https://github.com/vielhuber/simpleauth) supports this out of the box):
|
|
68
66
|
|
|
69
67
|
```js
|
|
70
68
|
const api = new jwtbutler({
|
|
71
69
|
/* ... */
|
|
72
70
|
captcha: {
|
|
73
|
-
provider: 'hcaptcha'
|
|
71
|
+
provider: '...', // 'turnstile'|'hcaptcha'
|
|
74
72
|
sitekey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
|
75
73
|
theme: 'light'
|
|
76
74
|
}
|