@getstrata/core 0.5.71 → 0.5.73
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/entries/openapi/generator.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @getstrata/core changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.73
|
|
4
|
+
|
|
5
|
+
- OpenAPI treats `POST /auth/email/verification-notification` as a public operation (no bearer).
|
|
6
|
+
|
|
7
|
+
## 0.5.72
|
|
8
|
+
|
|
9
|
+
- OpenAPI treats `POST /auth/forgot-password` and `POST /auth/reset-password` as public operations (no bearer).
|
|
10
|
+
|
|
3
11
|
## 0.5.71
|
|
4
12
|
|
|
5
13
|
- OpenAPI treats `POST /auth/login` and `POST /auth/register` as public (no bearer), including when routes are registered under `API_PREFIX`.
|
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ import type { Migration } from "@getstrata/core/database/migrations/types";
|
|
|
82
82
|
Package name: **`@getstrata/core`** (npm org [`@getstrata`](https://www.npmjs.com/org/getstrata)).
|
|
83
83
|
|
|
84
84
|
1. Add `NPM_TOKEN` to GitHub repository secrets.
|
|
85
|
-
2. Tag a release: `git tag v0.5.
|
|
85
|
+
2. Tag a release: `git tag v0.5.73 && git push origin v0.5.73`
|
|
86
86
|
3. [Release workflow](../../.github/workflows/release.yml) builds and runs `npm publish --access public`.
|
|
87
87
|
|
|
88
88
|
Previously published as `@eyk-workhub/framework@0.1.0`, deprecated in favor of this package.
|
|
@@ -52,6 +52,9 @@ var PUBLIC_ROUTE_DESCRIPTIONS = {
|
|
|
52
52
|
"GET /auth/me": "Current authenticated user",
|
|
53
53
|
"POST /auth/login": "Login with email and password",
|
|
54
54
|
"POST /auth/register": "Register with name, email, and password",
|
|
55
|
+
"POST /auth/forgot-password": "Request a password reset email",
|
|
56
|
+
"POST /auth/reset-password": "Reset password with email and token",
|
|
57
|
+
"POST /auth/email/verification-notification": "Resend email verification link",
|
|
55
58
|
"GET /auth/tokens": "List API tokens",
|
|
56
59
|
"POST /auth/tokens": "Create API token",
|
|
57
60
|
"DELETE /auth/tokens/:id": "Revoke API token",
|
|
@@ -96,7 +99,7 @@ function toRelativeApiPath(path) {
|
|
|
96
99
|
}
|
|
97
100
|
function requiresBearerAuth(path, method) {
|
|
98
101
|
const relative = toRelativeApiPath(path);
|
|
99
|
-
if (relative.startsWith("/auth/login") || relative.startsWith("/auth/register") || relative.startsWith("/auth/oauth")) {
|
|
102
|
+
if (relative.startsWith("/auth/login") || relative.startsWith("/auth/register") || relative.startsWith("/auth/forgot-password") || relative.startsWith("/auth/reset-password") || relative.startsWith("/auth/email/verification-notification") || relative.startsWith("/auth/oauth")) {
|
|
100
103
|
return false;
|
|
101
104
|
}
|
|
102
105
|
if (relative.startsWith("/scim/") || relative.startsWith("/billing/webhooks/") || path.startsWith("/scim/") || path.startsWith("/billing/webhooks/")) {
|