@nxgt/janus-graphql 0.6.5 → 0.6.6
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/docs/guide/errors.md +5 -5
- package/package.json +3 -3
package/docs/guide/errors.md
CHANGED
|
@@ -169,12 +169,12 @@ body. `retryAfter` is the seconds until the login's next window.
|
|
|
169
169
|
([passwords](https://github.com/softistx/nxgt-janus/blob/develop/packages/janus/docs/guide/passwords.md#password-guessing-is-throttled)).
|
|
170
170
|
|
|
171
171
|
**The requests that send an e-mail are throttled too.** Past five requests
|
|
172
|
-
for one address (one user, for `verifyEmail.send`
|
|
173
|
-
`stepUp.request`) in a 10-minute
|
|
174
|
-
and sends nothing; a refused request spends and rotates nothing, so the last
|
|
172
|
+
for one address (one user, for `verifyEmail.send`, `changeEmail.send` — also
|
|
173
|
+
counted per new address — and an e-mailed `stepUp.request`) in a 10-minute
|
|
174
|
+
window, `@nxgt/janus` throws `MAIL_THROTTLED` and sends nothing; a refused request spends and rotates nothing, so the last
|
|
175
175
|
link or code sent still works. Tell the visitor to use the last e-mail they
|
|
176
|
-
received, or to wait `retryAfter` seconds. `janusGraphQLError()` answers it
|
|
177
|
-
`Too many requests, retry later`:
|
|
176
|
+
received, or to wait `retryAfter` seconds. `janusGraphQLError()` answers it
|
|
177
|
+
with the fixed message `Too many requests, retry later`:
|
|
178
178
|
|
|
179
179
|
```json
|
|
180
180
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/janus-graphql",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "GraphQL for @nxgt/janus: an envelop plugin with the signed-in user on the context, fields guarded by @authenticated, @fresh and @permission, and every error with the status it deserves",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@envelop/core": "^5.6.1",
|
|
57
57
|
"@graphql-tools/utils": "^12.0.1",
|
|
58
|
-
"@nxgt/janus": "^0.
|
|
58
|
+
"@nxgt/janus": "^0.23.0",
|
|
59
59
|
"@types/bun": "^1.4.2",
|
|
60
60
|
"@types/ws": "^8.18.1",
|
|
61
61
|
"graphql": "^17.0.2",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@envelop/core": "^5.0.0",
|
|
69
69
|
"@graphql-tools/utils": ">=10.0.0 <13",
|
|
70
|
-
"@nxgt/janus": "^0.
|
|
70
|
+
"@nxgt/janus": "^0.23.0",
|
|
71
71
|
"graphql": "^16.9.0 || ^17.0.0",
|
|
72
72
|
"graphql-ws": "^6.0.0",
|
|
73
73
|
"typescript": "^6.0.3 || ^7.0.0"
|