fix: remove duplicated magic strings across multiple files

This commit is contained in:
alphafetus committed 2026-09-24 12:04:12 -04:00
1 parent 2e0e47d72b
commit 988f5c83b7
13 files changed
+46 -30

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
use leptos::prelude::*;
use super::setup::provide_auth_context;
use crate::common::{COGNITO_REGION, STUDENT_PROVIDER_POOL_ID};
///# Student Login Context Component
///
@@ -20,7 +21,7 @@ pub fn StudentLoginContext(
) -> impl IntoView {
provide_auth_context(
crate::utils::use_origin(),
"https://cognito-idp.us-east-1.amazonaws.com/us-east-1_Lfjuy5zaM",
format!("https://cognito-idp.{COGNITO_REGION}.amazonaws.com/{STUDENT_PROVIDER_POOL_ID}"),
"10jr2h3vtpu9n7gj46pvg5qo2q",
"/students/callback"
);