@contentgrowth/content-auth 0.5.4 → 0.5.5
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/dist/backend/index.js
CHANGED
|
@@ -515,10 +515,7 @@ var createAuth = (config) => {
|
|
|
515
515
|
}
|
|
516
516
|
if (isNewUser) {
|
|
517
517
|
try {
|
|
518
|
-
|
|
519
|
-
if (result instanceof Promise) {
|
|
520
|
-
result.catch((e) => console.error(`[ContentAuth] onSignup hook failed: ${e.message}`));
|
|
521
|
-
}
|
|
518
|
+
await onSignup(user2);
|
|
522
519
|
} catch (e) {
|
|
523
520
|
console.error(`[ContentAuth] onSignup hook failed: ${e.message}`);
|
|
524
521
|
}
|
|
@@ -527,10 +524,7 @@ var createAuth = (config) => {
|
|
|
527
524
|
if (onSignin) {
|
|
528
525
|
if (path.includes("/sign-in") || path.includes("/sign-up") || path.includes("/callback")) {
|
|
529
526
|
try {
|
|
530
|
-
|
|
531
|
-
if (result instanceof Promise) {
|
|
532
|
-
result.catch((e) => console.error(`[ContentAuth] onSignin hook failed: ${e.message}`));
|
|
533
|
-
}
|
|
527
|
+
await onSignin(user2);
|
|
534
528
|
} catch (e) {
|
|
535
529
|
console.error(`[ContentAuth] onSignin hook failed: ${e.message}`);
|
|
536
530
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentgrowth/content-auth",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Better Auth wrapper with UI components for Cloudflare Workers & Pages. Includes custom schema mapping, Turnstile bot protection, and email normalization.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|