mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-22 21:28:12 +02:00
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:
parent
03e57bdf7e
commit
b54eff648e
6 changed files with 130 additions and 40 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue