PR with too many features #58

Merged
BobdaFett merged 56 commits from feat/admin-page into main 2026-02-10 14:31:49 +00:00
Showing only changes of commit bb743cf114 - Show all commits
+1 -1
View File
@@ -22,7 +22,7 @@ pub fn use_origin() -> String {
/// Gets the current user claims. This function should only be used in an area that has /// Gets the current user claims. This function should only be used in an area that has
/// access to an AuthSignal, or it will result in a total failure. /// access to an AuthSignal, or it will result in a total failure.
pub fn get_user_claims() -> Signal<Option<TokenData<UserClaims>>> { pub fn get_user_claims() -> Signal<Option<TokenData<UserClaims>>> {
let auth = use_context::<AuthSignal>().expect("Couldn't find AuthSignal."); let auth = expect_context::<AuthSignal>();
Signal::derive(move || { Signal::derive(move || {
auth.with(|auth| { auth.with(|auth| {
auth.authenticated().and_then(|data| { auth.authenticated().and_then(|data| {