feat: implement runtime authentication handling

- Added a new proxy function to manage runtime authentication types and set cookies accordingly.
- Introduced runtime authentication configuration to dynamically adjust UI based on the selected auth type.
- Updated global styles to hide specific authentication buttons based on the current auth type.
- Refactored sign-in button and hero section components to utilize the new runtime authentication logic.
- Created a new utility file for runtime authentication configuration and initialization script.
This commit is contained in:
Anish Sarkar 2026-06-19 03:56:26 +05:30
parent 03e57bdf7e
commit b54eff648e
6 changed files with 130 additions and 40 deletions

View file

@ -58,6 +58,11 @@
--highlight: oklch(0.852 0.199 91.936);
}
html[data-surfsense-auth-type="GOOGLE"] .runtime-auth-local,
html[data-surfsense-auth-type="LOCAL"] .runtime-auth-google {
display: none;
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);