hazo_auth 1.6.7 → 3.0.1
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 +114 -14
- package/SETUP_CHECKLIST.md +65 -1
- package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts.map +1 -1
- package/dist/components/layouts/email_verification/hooks/use_email_verification.js +5 -3
- package/dist/components/layouts/email_verification/index.d.ts +2 -1
- package/dist/components/layouts/email_verification/index.d.ts.map +1 -1
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts.map +1 -1
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.js +3 -1
- package/dist/components/layouts/forgot_password/index.d.ts +2 -1
- package/dist/components/layouts/forgot_password/index.d.ts.map +1 -1
- package/dist/components/layouts/login/hooks/use_login_form.d.ts.map +1 -1
- package/dist/components/layouts/login/hooks/use_login_form.js +3 -1
- package/dist/components/layouts/login/index.d.ts +2 -1
- package/dist/components/layouts/login/index.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/components/profile_picture_dialog.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/components/profile_picture_dialog.js +3 -1
- package/dist/components/layouts/my_settings/components/profile_picture_library_tab.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/components/profile_picture_library_tab.js +4 -2
- package/dist/components/layouts/my_settings/hooks/use_my_settings.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/hooks/use_my_settings.js +7 -5
- package/dist/components/layouts/my_settings/index.d.ts +2 -1
- package/dist/components/layouts/my_settings/index.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/index.js +3 -2
- package/dist/components/layouts/register/hooks/use_register_form.d.ts.map +1 -1
- package/dist/components/layouts/register/hooks/use_register_form.js +3 -1
- package/dist/components/layouts/register/index.d.ts +2 -1
- package/dist/components/layouts/register/index.d.ts.map +1 -1
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts.map +1 -1
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.js +4 -2
- package/dist/components/layouts/reset_password/index.d.ts +2 -1
- package/dist/components/layouts/reset_password/index.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/already_logged_in_guard.d.ts +2 -1
- package/dist/components/layouts/shared/components/already_logged_in_guard.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/logout_button.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/logout_button.js +3 -1
- package/dist/components/layouts/shared/components/profile_pic_menu.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/profile_pic_menu.js +8 -4
- package/dist/components/layouts/shared/components/two_column_auth_layout.d.ts +2 -1
- package/dist/components/layouts/shared/components/two_column_auth_layout.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/visual_panel.d.ts +2 -1
- package/dist/components/layouts/shared/components/visual_panel.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/visual_panel.js +2 -1
- package/dist/components/layouts/shared/hooks/use_auth_status.d.ts.map +1 -1
- package/dist/components/layouts/shared/hooks/use_auth_status.js +4 -2
- package/dist/components/layouts/shared/hooks/use_hazo_auth.d.ts.map +1 -1
- package/dist/components/layouts/shared/hooks/use_hazo_auth.js +4 -2
- package/dist/components/layouts/shared/index.d.ts +0 -2
- package/dist/components/layouts/shared/index.d.ts.map +1 -1
- package/dist/components/layouts/shared/index.js +2 -2
- package/dist/components/layouts/user_management/components/roles_matrix.d.ts.map +1 -1
- package/dist/components/layouts/user_management/components/roles_matrix.js +8 -6
- package/dist/components/layouts/user_management/index.d.ts.map +1 -1
- package/dist/components/layouts/user_management/index.js +15 -13
- package/dist/contexts/hazo_auth_config.d.ts +18 -0
- package/dist/contexts/hazo_auth_config.d.ts.map +1 -0
- package/dist/contexts/hazo_auth_config.js +10 -0
- package/dist/contexts/hazo_auth_provider.d.ts +73 -0
- package/dist/contexts/hazo_auth_provider.d.ts.map +1 -0
- package/dist/contexts/hazo_auth_provider.js +82 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/lib/config/default_config.d.ts +237 -0
- package/dist/lib/config/default_config.d.ts.map +1 -0
- package/dist/lib/config/default_config.js +159 -0
- package/dist/lib/email_verification_config.server.d.ts +4 -0
- package/dist/lib/email_verification_config.server.d.ts.map +1 -1
- package/dist/lib/email_verification_config.server.js +12 -0
- package/dist/lib/forgot_password_config.server.d.ts +4 -0
- package/dist/lib/forgot_password_config.server.d.ts.map +1 -1
- package/dist/lib/forgot_password_config.server.js +12 -0
- package/dist/lib/login_config.server.d.ts +4 -0
- package/dist/lib/login_config.server.d.ts.map +1 -1
- package/dist/lib/login_config.server.js +10 -0
- package/dist/lib/password_requirements_config.server.d.ts +1 -1
- package/dist/lib/password_requirements_config.server.d.ts.map +1 -1
- package/dist/lib/password_requirements_config.server.js +8 -7
- package/dist/lib/register_config.server.d.ts +4 -0
- package/dist/lib/register_config.server.d.ts.map +1 -1
- package/dist/lib/register_config.server.js +10 -0
- package/dist/lib/reset_password_config.server.d.ts +4 -0
- package/dist/lib/reset_password_config.server.d.ts.map +1 -1
- package/dist/lib/reset_password_config.server.js +10 -0
- package/dist/page_components/forgot_password.d.ts.map +1 -1
- package/dist/page_components/forgot_password.js +14 -0
- package/dist/page_components/login.d.ts +4 -0
- package/dist/page_components/login.d.ts.map +1 -1
- package/dist/page_components/login.js +14 -0
- package/dist/page_components/register.d.ts.map +1 -1
- package/dist/page_components/register.js +14 -0
- package/dist/page_components/reset_password.d.ts.map +1 -1
- package/dist/page_components/reset_password.js +14 -0
- package/dist/page_components/verify_email.d.ts.map +1 -1
- package/dist/page_components/verify_email.js +14 -0
- package/dist/pages/forgot_password.d.ts +52 -0
- package/dist/pages/forgot_password.d.ts.map +1 -0
- package/dist/pages/forgot_password.js +41 -0
- package/dist/pages/index.d.ts +33 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/pages/index.js +28 -0
- package/dist/pages/login.d.ts +43 -0
- package/dist/pages/login.d.ts.map +1 -0
- package/dist/pages/login.js +45 -0
- package/dist/pages/my_settings.d.ts +54 -0
- package/dist/pages/my_settings.d.ts.map +1 -0
- package/dist/pages/my_settings.js +57 -0
- package/dist/pages/register.d.ts +44 -0
- package/dist/pages/register.d.ts.map +1 -0
- package/dist/pages/register.js +46 -0
- package/dist/pages/reset_password.d.ts +43 -0
- package/dist/pages/reset_password.d.ts.map +1 -0
- package/dist/pages/reset_password.js +42 -0
- package/dist/pages/verify_email.d.ts +52 -0
- package/dist/pages/verify_email.d.ts.map +1 -0
- package/dist/pages/verify_email.js +41 -0
- package/dist/server_pages/forgot_password.d.ts +53 -0
- package/dist/server_pages/forgot_password.d.ts.map +1 -0
- package/dist/server_pages/forgot_password.js +40 -0
- package/dist/server_pages/forgot_password_client_wrapper.d.ts +15 -0
- package/dist/server_pages/forgot_password_client_wrapper.d.ts.map +1 -0
- package/dist/server_pages/forgot_password_client_wrapper.js +27 -0
- package/dist/server_pages/index.d.ts +13 -0
- package/dist/server_pages/index.d.ts.map +1 -0
- package/dist/server_pages/index.js +7 -0
- package/dist/server_pages/login.d.ts +43 -0
- package/dist/server_pages/login.d.ts.map +1 -0
- package/dist/server_pages/login.js +39 -0
- package/dist/server_pages/login_client_wrapper.d.ts +13 -0
- package/dist/server_pages/login_client_wrapper.d.ts.map +1 -0
- package/dist/server_pages/login_client_wrapper.js +29 -0
- package/dist/server_pages/my_settings.d.ts +53 -0
- package/dist/server_pages/my_settings.d.ts.map +1 -0
- package/dist/server_pages/my_settings.js +57 -0
- package/dist/server_pages/register.d.ts +45 -0
- package/dist/server_pages/register.d.ts.map +1 -0
- package/dist/server_pages/register.js +41 -0
- package/dist/server_pages/register_client_wrapper.d.ts +13 -0
- package/dist/server_pages/register_client_wrapper.d.ts.map +1 -0
- package/dist/server_pages/register_client_wrapper.js +27 -0
- package/dist/server_pages/reset_password.d.ts +44 -0
- package/dist/server_pages/reset_password.d.ts.map +1 -0
- package/dist/server_pages/reset_password.js +40 -0
- package/dist/server_pages/reset_password_client_wrapper.d.ts +13 -0
- package/dist/server_pages/reset_password_client_wrapper.d.ts.map +1 -0
- package/dist/server_pages/reset_password_client_wrapper.js +27 -0
- package/dist/server_pages/verify_email.d.ts +53 -0
- package/dist/server_pages/verify_email.d.ts.map +1 -0
- package/dist/server_pages/verify_email.js +40 -0
- package/dist/server_pages/verify_email_client_wrapper.d.ts +15 -0
- package/dist/server_pages/verify_email_client_wrapper.d.ts.map +1 -0
- package/dist/server_pages/verify_email_client_wrapper.js +27 -0
- package/package.json +34 -10
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// file_description: Centralized default configuration for hazo_auth
|
|
2
|
+
// All default values in one place for easy reference and maintenance
|
|
3
|
+
// These defaults are used when hazo_auth_config.ini is missing or incomplete
|
|
4
|
+
// section: password_requirements
|
|
5
|
+
export const DEFAULT_PASSWORD_REQUIREMENTS = {
|
|
6
|
+
minimum_length: 8,
|
|
7
|
+
require_uppercase: false,
|
|
8
|
+
require_lowercase: false,
|
|
9
|
+
require_number: false,
|
|
10
|
+
require_special: false,
|
|
11
|
+
};
|
|
12
|
+
// section: user_fields
|
|
13
|
+
export const DEFAULT_USER_FIELDS = {
|
|
14
|
+
show_name_field: true,
|
|
15
|
+
show_email_field: true,
|
|
16
|
+
show_password_field: true,
|
|
17
|
+
};
|
|
18
|
+
// section: profile_picture
|
|
19
|
+
export const DEFAULT_PROFILE_PICTURE = {
|
|
20
|
+
allow_photo_upload: true,
|
|
21
|
+
max_photo_size: 5242880, // 5MB in bytes
|
|
22
|
+
user_photo_default: true,
|
|
23
|
+
user_photo_default_priority1: "gravatar",
|
|
24
|
+
user_photo_default_priority2: "library",
|
|
25
|
+
library_photo_path: "/profile_pictures/library",
|
|
26
|
+
};
|
|
27
|
+
// section: ui_sizes
|
|
28
|
+
export const DEFAULT_UI_SIZES = {
|
|
29
|
+
gravatar_size: 200,
|
|
30
|
+
profile_picture_size: 128,
|
|
31
|
+
tooltip_icon_size_default: 16,
|
|
32
|
+
tooltip_icon_size_small: 14,
|
|
33
|
+
library_photo_grid_columns: 4,
|
|
34
|
+
library_photo_preview_size: 80,
|
|
35
|
+
image_compression_max_dimension: 800,
|
|
36
|
+
upload_file_hard_limit_bytes: 10485760, // 10MB
|
|
37
|
+
};
|
|
38
|
+
// section: file_types
|
|
39
|
+
export const DEFAULT_FILE_TYPES = {
|
|
40
|
+
allowed_image_extensions: [".jpg", ".jpeg", ".png", ".gif", ".webp"],
|
|
41
|
+
allowed_image_mime_types: ["image/jpeg", "image/png", "image/gif", "image/webp"],
|
|
42
|
+
};
|
|
43
|
+
// section: messages
|
|
44
|
+
export const DEFAULT_MESSAGES = {
|
|
45
|
+
photo_upload_disabled_message: "Photo upload is currently disabled. Contact your administrator.",
|
|
46
|
+
gravatar_setup_message: "To use Gravatar, create a free account at gravatar.com with the same email address you use here.",
|
|
47
|
+
gravatar_no_account_message: "No Gravatar account found for your email. Using library photo instead.",
|
|
48
|
+
library_tooltip_message: "Choose from our library of profile pictures",
|
|
49
|
+
};
|
|
50
|
+
// section: already_logged_in
|
|
51
|
+
export const DEFAULT_ALREADY_LOGGED_IN = {
|
|
52
|
+
message: "You are already logged in",
|
|
53
|
+
showLogoutButton: true,
|
|
54
|
+
showReturnHomeButton: true,
|
|
55
|
+
returnHomeButtonLabel: "Return Home",
|
|
56
|
+
returnHomePath: "/",
|
|
57
|
+
};
|
|
58
|
+
// section: login
|
|
59
|
+
export const DEFAULT_LOGIN = {
|
|
60
|
+
redirectRoute: undefined,
|
|
61
|
+
successMessage: "Successfully logged in",
|
|
62
|
+
forgotPasswordPath: "/hazo_auth/forgot_password",
|
|
63
|
+
forgotPasswordLabel: "Forgot password?",
|
|
64
|
+
createAccountPath: "/hazo_auth/register",
|
|
65
|
+
createAccountLabel: "Create account",
|
|
66
|
+
};
|
|
67
|
+
// section: register
|
|
68
|
+
export const DEFAULT_REGISTER = {
|
|
69
|
+
redirectRoute: undefined,
|
|
70
|
+
successMessage: "Registration successful! Please check your email to verify your account.",
|
|
71
|
+
loginPath: "/hazo_auth/login",
|
|
72
|
+
loginLabel: "Already have an account? Sign in",
|
|
73
|
+
requireEmailVerification: true,
|
|
74
|
+
};
|
|
75
|
+
// section: forgot_password
|
|
76
|
+
export const DEFAULT_FORGOT_PASSWORD = {
|
|
77
|
+
successMessage: "If an account with that email exists, a password reset link has been sent.",
|
|
78
|
+
loginPath: "/hazo_auth/login",
|
|
79
|
+
loginLabel: "Back to login",
|
|
80
|
+
};
|
|
81
|
+
// section: reset_password
|
|
82
|
+
export const DEFAULT_RESET_PASSWORD = {
|
|
83
|
+
successMessage: "Password reset successfully. You can now log in with your new password.",
|
|
84
|
+
loginPath: "/hazo_auth/login",
|
|
85
|
+
redirectDelay: 2, // seconds
|
|
86
|
+
};
|
|
87
|
+
// section: email_verification
|
|
88
|
+
export const DEFAULT_EMAIL_VERIFICATION = {
|
|
89
|
+
successMessage: "Email verified successfully! Redirecting to login...",
|
|
90
|
+
errorMessage: "Email verification failed. The link may have expired.",
|
|
91
|
+
loginPath: "/hazo_auth/login",
|
|
92
|
+
redirectDelay: 5, // seconds
|
|
93
|
+
};
|
|
94
|
+
// section: my_settings
|
|
95
|
+
export const DEFAULT_MY_SETTINGS = {
|
|
96
|
+
showNameField: true,
|
|
97
|
+
showEmailField: true,
|
|
98
|
+
showPasswordField: true,
|
|
99
|
+
showProfilePicture: true,
|
|
100
|
+
};
|
|
101
|
+
// section: user_management
|
|
102
|
+
export const DEFAULT_USER_MANAGEMENT = {
|
|
103
|
+
enableUserManagement: true,
|
|
104
|
+
enableRoleManagement: true,
|
|
105
|
+
enablePermissionManagement: true,
|
|
106
|
+
};
|
|
107
|
+
// section: auth_utility
|
|
108
|
+
export const DEFAULT_AUTH_UTILITY = {
|
|
109
|
+
sessionCookieName: "hazo_session",
|
|
110
|
+
sessionDuration: 86400, // 24 hours in seconds
|
|
111
|
+
requireEmailVerification: true,
|
|
112
|
+
};
|
|
113
|
+
// section: ui_shell
|
|
114
|
+
export const DEFAULT_UI_SHELL = {
|
|
115
|
+
layout_mode: "standalone",
|
|
116
|
+
image_src: "/globe.svg",
|
|
117
|
+
image_width: 400,
|
|
118
|
+
image_height: 400,
|
|
119
|
+
show_visual_panel: true,
|
|
120
|
+
};
|
|
121
|
+
// section: profile_pic_menu
|
|
122
|
+
export const DEFAULT_PROFILE_PIC_MENU = {
|
|
123
|
+
show_single_button: false,
|
|
124
|
+
sign_up_label: "Sign Up",
|
|
125
|
+
sign_in_label: "Sign In",
|
|
126
|
+
register_path: "/hazo_auth/register",
|
|
127
|
+
login_path: "/hazo_auth/login",
|
|
128
|
+
settings_path: "/hazo_auth/my_settings",
|
|
129
|
+
logout_path: "/api/hazo_auth/logout",
|
|
130
|
+
};
|
|
131
|
+
// section: api_paths
|
|
132
|
+
export const DEFAULT_API_PATHS = {
|
|
133
|
+
apiBasePath: "/api/hazo_auth",
|
|
134
|
+
};
|
|
135
|
+
// section: combined_defaults
|
|
136
|
+
/**
|
|
137
|
+
* All default configuration values combined in one object
|
|
138
|
+
* This makes it easy to see all defaults at a glance and export them as needed
|
|
139
|
+
*/
|
|
140
|
+
export const HAZO_AUTH_DEFAULTS = {
|
|
141
|
+
passwordRequirements: DEFAULT_PASSWORD_REQUIREMENTS,
|
|
142
|
+
userFields: DEFAULT_USER_FIELDS,
|
|
143
|
+
profilePicture: DEFAULT_PROFILE_PICTURE,
|
|
144
|
+
uiSizes: DEFAULT_UI_SIZES,
|
|
145
|
+
fileTypes: DEFAULT_FILE_TYPES,
|
|
146
|
+
messages: DEFAULT_MESSAGES,
|
|
147
|
+
alreadyLoggedIn: DEFAULT_ALREADY_LOGGED_IN,
|
|
148
|
+
login: DEFAULT_LOGIN,
|
|
149
|
+
register: DEFAULT_REGISTER,
|
|
150
|
+
forgotPassword: DEFAULT_FORGOT_PASSWORD,
|
|
151
|
+
resetPassword: DEFAULT_RESET_PASSWORD,
|
|
152
|
+
emailVerification: DEFAULT_EMAIL_VERIFICATION,
|
|
153
|
+
mySettings: DEFAULT_MY_SETTINGS,
|
|
154
|
+
userManagement: DEFAULT_USER_MANAGEMENT,
|
|
155
|
+
authUtility: DEFAULT_AUTH_UTILITY,
|
|
156
|
+
uiShell: DEFAULT_UI_SHELL,
|
|
157
|
+
profilePicMenu: DEFAULT_PROFILE_PIC_MENU,
|
|
158
|
+
apiPaths: DEFAULT_API_PATHS,
|
|
159
|
+
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
1
2
|
export type EmailVerificationConfig = {
|
|
2
3
|
alreadyLoggedInMessage: string;
|
|
3
4
|
showLogoutButton: boolean;
|
|
4
5
|
showReturnHomeButton: boolean;
|
|
5
6
|
returnHomeButtonLabel: string;
|
|
6
7
|
returnHomePath: string;
|
|
8
|
+
imageSrc: string | StaticImageData;
|
|
9
|
+
imageAlt: string;
|
|
10
|
+
imageBackgroundColor: string;
|
|
7
11
|
};
|
|
8
12
|
/**
|
|
9
13
|
* Reads email verification layout configuration from hazo_auth_config.ini file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email_verification_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/email_verification_config.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email_verification_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/email_verification_config.server.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,uBAAuB,GAAG;IACpC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAGF;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,uBAAuB,CAmCvE"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// file_description: server-only helper to read email verification layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
3
|
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
4
|
+
import { get_config_value } from "./config/config_loader.server";
|
|
5
|
+
import verifyEmailDefaultImage from "../assets/images/verify_email_default.jpg";
|
|
4
6
|
// section: helpers
|
|
5
7
|
/**
|
|
6
8
|
* Reads email verification layout configuration from hazo_auth_config.ini file
|
|
@@ -8,13 +10,23 @@ import { get_already_logged_in_config } from "./already_logged_in_config.server"
|
|
|
8
10
|
* @returns Email verification configuration options
|
|
9
11
|
*/
|
|
10
12
|
export function get_email_verification_config() {
|
|
13
|
+
const section = "hazo_auth__email_verification_layout";
|
|
11
14
|
// Get shared already logged in config
|
|
12
15
|
const alreadyLoggedInConfig = get_already_logged_in_config();
|
|
16
|
+
// Read image configuration
|
|
17
|
+
// If not set in config, falls back to default image from assets
|
|
18
|
+
const imageSrc = get_config_value(section, "image_src", "" // Empty string means not set in config
|
|
19
|
+
) || verifyEmailDefaultImage;
|
|
20
|
+
const imageAlt = get_config_value(section, "image_alt", "Email verification illustration");
|
|
21
|
+
const imageBackgroundColor = get_config_value(section, "image_background_color", "#f1f5f9");
|
|
13
22
|
return {
|
|
14
23
|
alreadyLoggedInMessage: alreadyLoggedInConfig.message,
|
|
15
24
|
showLogoutButton: alreadyLoggedInConfig.showLogoutButton,
|
|
16
25
|
showReturnHomeButton: alreadyLoggedInConfig.showReturnHomeButton,
|
|
17
26
|
returnHomeButtonLabel: alreadyLoggedInConfig.returnHomeButtonLabel,
|
|
18
27
|
returnHomePath: alreadyLoggedInConfig.returnHomePath,
|
|
28
|
+
imageSrc,
|
|
29
|
+
imageAlt,
|
|
30
|
+
imageBackgroundColor,
|
|
19
31
|
};
|
|
20
32
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
1
2
|
export type ForgotPasswordConfig = {
|
|
2
3
|
alreadyLoggedInMessage: string;
|
|
3
4
|
showLogoutButton: boolean;
|
|
4
5
|
showReturnHomeButton: boolean;
|
|
5
6
|
returnHomeButtonLabel: string;
|
|
6
7
|
returnHomePath: string;
|
|
8
|
+
imageSrc: string | StaticImageData;
|
|
9
|
+
imageAlt: string;
|
|
10
|
+
imageBackgroundColor: string;
|
|
7
11
|
};
|
|
8
12
|
/**
|
|
9
13
|
* Reads forgot password layout configuration from hazo_auth_config.ini file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgot_password_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/forgot_password_config.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"forgot_password_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/forgot_password_config.server.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAGF;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,oBAAoB,CAmCjE"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// file_description: server-only helper to read forgot password layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
3
|
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
4
|
+
import { get_config_value } from "./config/config_loader.server";
|
|
5
|
+
import forgotPasswordDefaultImage from "../assets/images/forgot_password_default.jpg";
|
|
4
6
|
// section: helpers
|
|
5
7
|
/**
|
|
6
8
|
* Reads forgot password layout configuration from hazo_auth_config.ini file
|
|
@@ -8,13 +10,23 @@ import { get_already_logged_in_config } from "./already_logged_in_config.server"
|
|
|
8
10
|
* @returns Forgot password configuration options
|
|
9
11
|
*/
|
|
10
12
|
export function get_forgot_password_config() {
|
|
13
|
+
const section = "hazo_auth__forgot_password_layout";
|
|
11
14
|
// Get shared already logged in config
|
|
12
15
|
const alreadyLoggedInConfig = get_already_logged_in_config();
|
|
16
|
+
// Read image configuration
|
|
17
|
+
// If not set in config, falls back to default image from assets
|
|
18
|
+
const imageSrc = get_config_value(section, "image_src", "" // Empty string means not set in config
|
|
19
|
+
) || forgotPasswordDefaultImage;
|
|
20
|
+
const imageAlt = get_config_value(section, "image_alt", "Password recovery illustration");
|
|
21
|
+
const imageBackgroundColor = get_config_value(section, "image_background_color", "#f1f5f9");
|
|
13
22
|
return {
|
|
14
23
|
alreadyLoggedInMessage: alreadyLoggedInConfig.message,
|
|
15
24
|
showLogoutButton: alreadyLoggedInConfig.showLogoutButton,
|
|
16
25
|
showReturnHomeButton: alreadyLoggedInConfig.showReturnHomeButton,
|
|
17
26
|
returnHomeButtonLabel: alreadyLoggedInConfig.returnHomeButtonLabel,
|
|
18
27
|
returnHomePath: alreadyLoggedInConfig.returnHomePath,
|
|
28
|
+
imageSrc,
|
|
29
|
+
imageAlt,
|
|
30
|
+
imageBackgroundColor,
|
|
19
31
|
};
|
|
20
32
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
1
2
|
export type LoginConfig = {
|
|
2
3
|
redirectRoute?: string;
|
|
3
4
|
successMessage: string;
|
|
@@ -10,6 +11,9 @@ export type LoginConfig = {
|
|
|
10
11
|
forgotPasswordLabel: string;
|
|
11
12
|
createAccountPath: string;
|
|
12
13
|
createAccountLabel: string;
|
|
14
|
+
imageSrc: string | StaticImageData;
|
|
15
|
+
imageAlt: string;
|
|
16
|
+
imageBackgroundColor: string;
|
|
13
17
|
};
|
|
14
18
|
/**
|
|
15
19
|
* Reads login layout configuration from hazo_auth_config.ini file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/login_config.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/login_config.server.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAGF;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,CAiE9C"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// section: imports
|
|
3
3
|
import { get_config_value } from "./config/config_loader.server";
|
|
4
4
|
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
5
|
+
import loginDefaultImage from "../assets/images/login_default.jpg";
|
|
5
6
|
// section: helpers
|
|
6
7
|
/**
|
|
7
8
|
* Reads login layout configuration from hazo_auth_config.ini file
|
|
@@ -21,6 +22,12 @@ export function get_login_config() {
|
|
|
21
22
|
const createAccountLabel = get_config_value(section, "create_account_label", "Create account");
|
|
22
23
|
// Get shared already logged in config
|
|
23
24
|
const alreadyLoggedInConfig = get_already_logged_in_config();
|
|
25
|
+
// Read image configuration
|
|
26
|
+
// If not set in config, falls back to default image from assets
|
|
27
|
+
const imageSrc = get_config_value(section, "image_src", "" // Empty string means not set in config
|
|
28
|
+
) || loginDefaultImage;
|
|
29
|
+
const imageAlt = get_config_value(section, "image_alt", "Secure login illustration");
|
|
30
|
+
const imageBackgroundColor = get_config_value(section, "image_background_color", "#f1f5f9");
|
|
24
31
|
return {
|
|
25
32
|
redirectRoute,
|
|
26
33
|
successMessage,
|
|
@@ -33,5 +40,8 @@ export function get_login_config() {
|
|
|
33
40
|
forgotPasswordLabel,
|
|
34
41
|
createAccountPath,
|
|
35
42
|
createAccountLabel,
|
|
43
|
+
imageSrc,
|
|
44
|
+
imageAlt,
|
|
45
|
+
imageBackgroundColor,
|
|
36
46
|
};
|
|
37
47
|
}
|
|
@@ -7,7 +7,7 @@ export type PasswordRequirementsConfig = {
|
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Reads shared password requirements configuration from hazo_auth_config.ini file
|
|
10
|
-
* Falls back to defaults if hazo_auth_config.ini is not found or section is missing
|
|
10
|
+
* Falls back to centralized defaults if hazo_auth_config.ini is not found or section is missing
|
|
11
11
|
* This configuration is used by both register and reset password layouts
|
|
12
12
|
* @returns Password requirements configuration options
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password_requirements_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/password_requirements_config.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"password_requirements_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/password_requirements_config.server.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,gCAAgC,IAAI,0BAA0B,CAiB7E"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
// file_description: server-only helper to read shared password requirements configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
3
|
import { get_config_number, get_config_boolean } from "./config/config_loader.server";
|
|
4
|
+
import { DEFAULT_PASSWORD_REQUIREMENTS } from "./config/default_config";
|
|
4
5
|
// section: helpers
|
|
5
6
|
/**
|
|
6
7
|
* Reads shared password requirements configuration from hazo_auth_config.ini file
|
|
7
|
-
* Falls back to defaults if hazo_auth_config.ini is not found or section is missing
|
|
8
|
+
* Falls back to centralized defaults if hazo_auth_config.ini is not found or section is missing
|
|
8
9
|
* This configuration is used by both register and reset password layouts
|
|
9
10
|
* @returns Password requirements configuration options
|
|
10
11
|
*/
|
|
11
12
|
export function get_password_requirements_config() {
|
|
12
13
|
const section = "hazo_auth__password_requirements";
|
|
13
|
-
// Read password requirements with defaults
|
|
14
|
-
const minimum_length = get_config_number(section, "minimum_length",
|
|
15
|
-
const require_uppercase = get_config_boolean(section, "require_uppercase",
|
|
16
|
-
const require_lowercase = get_config_boolean(section, "require_lowercase",
|
|
17
|
-
const require_number = get_config_boolean(section, "require_number",
|
|
18
|
-
const require_special = get_config_boolean(section, "require_special",
|
|
14
|
+
// Read password requirements with centralized defaults
|
|
15
|
+
const minimum_length = get_config_number(section, "minimum_length", DEFAULT_PASSWORD_REQUIREMENTS.minimum_length);
|
|
16
|
+
const require_uppercase = get_config_boolean(section, "require_uppercase", DEFAULT_PASSWORD_REQUIREMENTS.require_uppercase);
|
|
17
|
+
const require_lowercase = get_config_boolean(section, "require_lowercase", DEFAULT_PASSWORD_REQUIREMENTS.require_lowercase);
|
|
18
|
+
const require_number = get_config_boolean(section, "require_number", DEFAULT_PASSWORD_REQUIREMENTS.require_number);
|
|
19
|
+
const require_special = get_config_boolean(section, "require_special", DEFAULT_PASSWORD_REQUIREMENTS.require_special);
|
|
19
20
|
return {
|
|
20
21
|
minimum_length,
|
|
21
22
|
require_uppercase,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
1
2
|
export type RegisterConfig = {
|
|
2
3
|
showNameField: boolean;
|
|
3
4
|
passwordRequirements: {
|
|
@@ -14,6 +15,9 @@ export type RegisterConfig = {
|
|
|
14
15
|
returnHomePath: string;
|
|
15
16
|
signInPath: string;
|
|
16
17
|
signInLabel: string;
|
|
18
|
+
imageSrc: string | StaticImageData;
|
|
19
|
+
imageAlt: string;
|
|
20
|
+
imageBackgroundColor: string;
|
|
17
21
|
};
|
|
18
22
|
/**
|
|
19
23
|
* Reads register layout configuration from hazo_auth_config.ini file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/register_config.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/register_config.server.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,iBAAiB,EAAE,OAAO,CAAC;QAC3B,cAAc,EAAE,OAAO,CAAC;QACxB,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAGF;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,cAAc,CA6DpD"}
|
|
@@ -4,6 +4,7 @@ import { get_config_boolean, get_config_value, read_config_section } from "./con
|
|
|
4
4
|
import { get_password_requirements_config } from "./password_requirements_config.server";
|
|
5
5
|
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
6
6
|
import { get_user_fields_config } from "./user_fields_config.server";
|
|
7
|
+
import registerDefaultImage from "../assets/images/register_default.jpg";
|
|
7
8
|
// section: helpers
|
|
8
9
|
/**
|
|
9
10
|
* Reads register layout configuration from hazo_auth_config.ini file
|
|
@@ -25,6 +26,12 @@ export function get_register_config() {
|
|
|
25
26
|
// Read sign in link configuration
|
|
26
27
|
const signInPath = get_config_value("hazo_auth__register_layout", "sign_in_path", "/hazo_auth/login");
|
|
27
28
|
const signInLabel = get_config_value("hazo_auth__register_layout", "sign_in_label", "Sign in");
|
|
29
|
+
// Read image configuration
|
|
30
|
+
// If not set in config, falls back to default image from assets
|
|
31
|
+
const imageSrc = get_config_value("hazo_auth__register_layout", "image_src", "" // Empty string means not set in config
|
|
32
|
+
) || registerDefaultImage;
|
|
33
|
+
const imageAlt = get_config_value("hazo_auth__register_layout", "image_alt", "Modern building representing user registration");
|
|
34
|
+
const imageBackgroundColor = get_config_value("hazo_auth__register_layout", "image_background_color", "#e2e8f0");
|
|
28
35
|
return {
|
|
29
36
|
showNameField,
|
|
30
37
|
passwordRequirements,
|
|
@@ -35,5 +42,8 @@ export function get_register_config() {
|
|
|
35
42
|
returnHomePath: alreadyLoggedInConfig.returnHomePath,
|
|
36
43
|
signInPath,
|
|
37
44
|
signInLabel,
|
|
45
|
+
imageSrc,
|
|
46
|
+
imageAlt,
|
|
47
|
+
imageBackgroundColor,
|
|
38
48
|
};
|
|
39
49
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
1
2
|
export type ResetPasswordConfig = {
|
|
2
3
|
errorMessage: string;
|
|
3
4
|
successMessage: string;
|
|
@@ -15,6 +16,9 @@ export type ResetPasswordConfig = {
|
|
|
15
16
|
require_number: boolean;
|
|
16
17
|
require_special: boolean;
|
|
17
18
|
};
|
|
19
|
+
imageSrc: string | StaticImageData;
|
|
20
|
+
imageAlt: string;
|
|
21
|
+
imageBackgroundColor: string;
|
|
18
22
|
};
|
|
19
23
|
/**
|
|
20
24
|
* Reads reset password layout configuration from hazo_auth_config.ini file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset_password_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/reset_password_config.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset_password_config.server.d.ts","sourceRoot":"","sources":["../../src/lib/reset_password_config.server.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,iBAAiB,EAAE,OAAO,CAAC;QAC3B,cAAc,EAAE,OAAO,CAAC;QACxB,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAGF;;;;GAIG;AACH,wBAAgB,yBAAyB,IAAI,mBAAmB,CA+D/D"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { get_config_value } from "./config/config_loader.server";
|
|
4
4
|
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
5
5
|
import { get_password_requirements_config } from "./password_requirements_config.server";
|
|
6
|
+
import resetPasswordDefaultImage from "../assets/images/reset_password_default.jpg";
|
|
6
7
|
// section: helpers
|
|
7
8
|
/**
|
|
8
9
|
* Reads reset password layout configuration from hazo_auth_config.ini file
|
|
@@ -23,6 +24,12 @@ export function get_reset_password_config() {
|
|
|
23
24
|
const forgotPasswordPath = get_config_value(section, "forgot_password_path", "/hazo_auth/forgot_password");
|
|
24
25
|
// Get shared password requirements
|
|
25
26
|
const passwordRequirements = get_password_requirements_config();
|
|
27
|
+
// Read image configuration
|
|
28
|
+
// If not set in config, falls back to default image from assets
|
|
29
|
+
const imageSrc = get_config_value(section, "image_src", "" // Empty string means not set in config
|
|
30
|
+
) || resetPasswordDefaultImage;
|
|
31
|
+
const imageAlt = get_config_value(section, "image_alt", "Reset password illustration");
|
|
32
|
+
const imageBackgroundColor = get_config_value(section, "image_background_color", "#f1f5f9");
|
|
26
33
|
return {
|
|
27
34
|
errorMessage,
|
|
28
35
|
successMessage,
|
|
@@ -34,5 +41,8 @@ export function get_reset_password_config() {
|
|
|
34
41
|
returnHomeButtonLabel: alreadyLoggedInConfig.returnHomeButtonLabel,
|
|
35
42
|
returnHomePath: alreadyLoggedInConfig.returnHomePath,
|
|
36
43
|
passwordRequirements,
|
|
44
|
+
imageSrc,
|
|
45
|
+
imageAlt,
|
|
46
|
+
imageBackgroundColor,
|
|
37
47
|
};
|
|
38
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgot_password.d.ts","sourceRoot":"","sources":["../../src/page_components/forgot_password.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"forgot_password.d.ts","sourceRoot":"","sources":["../../src/page_components/forgot_password.tsx"],"names":[],"mappings":"AA+BA,MAAM,MAAM,uBAAuB,GAAG;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,sBAAoD,EACpD,gBAAuB,EACvB,oBAA4B,EAC5B,qBAAqC,EACrC,cAAoB,EACpB,QAA4B,EAC5B,QAA4B,EAC5B,oBAAuC,GACxC,GAAE,uBAA4B,2CAmC9B;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
// file_description: zero-config forgot password page component for hazo_auth
|
|
2
2
|
// Consumers can use this directly without needing to configure props
|
|
3
|
+
//
|
|
4
|
+
// ⚠️ DEPRECATED: This client component is deprecated in hazo_auth v2.0+
|
|
5
|
+
// Please use the new server component version instead:
|
|
6
|
+
//
|
|
7
|
+
// import { ForgotPasswordPage } from "hazo_auth/pages/forgot_password";
|
|
8
|
+
//
|
|
9
|
+
// The new version:
|
|
10
|
+
// - Initializes on the server (no loading state)
|
|
11
|
+
// - Works with your app's hazo_connect instance
|
|
12
|
+
// - True zero-config "drop in and use"
|
|
13
|
+
// - Better performance (smaller bundle)
|
|
14
|
+
//
|
|
15
|
+
// This file will be removed in v3.0
|
|
16
|
+
//
|
|
3
17
|
"use client";
|
|
4
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
19
|
// section: imports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/page_components/login.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/page_components/login.tsx"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,cAAyC,EACzC,sBAAoD,EACpD,gBAAuB,EACvB,oBAA4B,EAC5B,qBAAqC,EACrC,cAAoB,EACpB,kBAAiD,EACjD,mBAAwC,EACxC,iBAAyC,EACzC,kBAAqC,EACrC,UAAU,EACV,QAA4B,EAC5B,QAA4B,EAC5B,oBAAuC,GACxC,GAAE,cAAmB,2CA8CrB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
// file_description: zero-config login page component for hazo_auth
|
|
2
2
|
// Consumers can use this directly without needing to configure props
|
|
3
|
+
//
|
|
4
|
+
// ⚠️ DEPRECATED: This client component is deprecated in hazo_auth v2.0+
|
|
5
|
+
// Please use the new server component version instead:
|
|
6
|
+
//
|
|
7
|
+
// import { LoginPage } from "hazo_auth/pages/login";
|
|
8
|
+
//
|
|
9
|
+
// The new version:
|
|
10
|
+
// - Initializes on the server (no loading state)
|
|
11
|
+
// - Works with your app's hazo_connect instance
|
|
12
|
+
// - True zero-config "drop in and use"
|
|
13
|
+
// - Better performance (smaller bundle)
|
|
14
|
+
//
|
|
15
|
+
// This file will be removed in v3.0
|
|
16
|
+
//
|
|
3
17
|
"use client";
|
|
4
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
19
|
// section: imports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/page_components/register.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/page_components/register.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AAgB7G,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,4BAA4B,CAAC;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAC3B,aAAoB,EACpB,oBAAoD,EACpD,sBAAoD,EACpD,gBAAuB,EACvB,oBAA4B,EAC5B,qBAAqC,EACrC,cAAoB,EACpB,UAA+B,EAC/B,WAAuB,EACvB,UAAU,EACV,QAA4B,EAC5B,QAA4B,EAC5B,oBAAuC,GACxC,GAAE,iBAAsB,2CAwCxB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
// file_description: zero-config register page component for hazo_auth
|
|
2
2
|
// Consumers can use this directly without needing to configure props
|
|
3
|
+
//
|
|
4
|
+
// ⚠️ DEPRECATED: This client component is deprecated in hazo_auth v2.0+
|
|
5
|
+
// Please use the new server component version instead:
|
|
6
|
+
//
|
|
7
|
+
// import { RegisterPage } from "hazo_auth/pages/register";
|
|
8
|
+
//
|
|
9
|
+
// The new version:
|
|
10
|
+
// - Initializes on the server (no loading state)
|
|
11
|
+
// - Works with your app's hazo_connect instance
|
|
12
|
+
// - True zero-config "drop in and use"
|
|
13
|
+
// - Better performance (smaller bundle)
|
|
14
|
+
//
|
|
15
|
+
// This file will be removed in v3.0
|
|
16
|
+
//
|
|
3
17
|
"use client";
|
|
4
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
19
|
// section: imports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset_password.d.ts","sourceRoot":"","sources":["../../src/page_components/reset_password.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset_password.d.ts","sourceRoot":"","sources":["../../src/page_components/reset_password.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AAgB7G,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,4BAA4B,CAAC;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,YAAmE,EACnE,cAAwF,EACxF,SAA8B,EAC9B,kBAAiD,EACjD,oBAAoD,EACpD,sBAAoD,EACpD,gBAAuB,EACvB,oBAA4B,EAC5B,qBAAqC,EACrC,cAAoB,EACpB,QAA4B,EAC5B,QAA4B,EAC5B,oBAAuC,GACxC,GAAE,sBAA2B,2CAsC7B;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
// file_description: zero-config reset password page component for hazo_auth
|
|
2
2
|
// Consumers can use this directly without needing to configure props
|
|
3
|
+
//
|
|
4
|
+
// ⚠️ DEPRECATED: This client component is deprecated in hazo_auth v2.0+
|
|
5
|
+
// Please use the new server component version instead:
|
|
6
|
+
//
|
|
7
|
+
// import { ResetPasswordPage } from "hazo_auth/pages/reset_password";
|
|
8
|
+
//
|
|
9
|
+
// The new version:
|
|
10
|
+
// - Initializes on the server (no loading state)
|
|
11
|
+
// - Works with your app's hazo_connect instance
|
|
12
|
+
// - True zero-config "drop in and use"
|
|
13
|
+
// - Better performance (smaller bundle)
|
|
14
|
+
//
|
|
15
|
+
// This file will be removed in v3.0
|
|
16
|
+
//
|
|
3
17
|
"use client";
|
|
4
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
19
|
// section: imports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify_email.d.ts","sourceRoot":"","sources":["../../src/page_components/verify_email.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify_email.d.ts","sourceRoot":"","sources":["../../src/page_components/verify_email.tsx"],"names":[],"mappings":"AA+BA,MAAM,MAAM,oBAAoB,GAAG;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,sBAAoD,EACpD,gBAAuB,EACvB,oBAA4B,EAC5B,qBAAqC,EACrC,cAAoB,EACpB,aAAoB,EACpB,SAA8B,EAC9B,QAA4B,EAC5B,QAA4B,EAC5B,oBAAuC,GACxC,GAAE,oBAAyB,2CAqC3B;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
// file_description: zero-config verify email page component for hazo_auth
|
|
2
2
|
// Consumers can use this directly without needing to configure props
|
|
3
|
+
//
|
|
4
|
+
// ⚠️ DEPRECATED: This client component is deprecated in hazo_auth v2.0+
|
|
5
|
+
// Please use the new server component version instead:
|
|
6
|
+
//
|
|
7
|
+
// import { VerifyEmailPage } from "hazo_auth/pages/verify_email";
|
|
8
|
+
//
|
|
9
|
+
// The new version:
|
|
10
|
+
// - Initializes on the server (no loading state)
|
|
11
|
+
// - Works with your app's hazo_connect instance
|
|
12
|
+
// - True zero-config "drop in and use"
|
|
13
|
+
// - Better performance (smaller bundle)
|
|
14
|
+
//
|
|
15
|
+
// This file will be removed in v3.0
|
|
16
|
+
//
|
|
3
17
|
"use client";
|
|
4
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
19
|
// section: imports
|