Skip to content

chore: add signal for authentication state / user id (@fehmer)#7539

Merged
Miodec merged 3 commits intomasterfrom
feature/authentication-signal
Feb 26, 2026
Merged

chore: add signal for authentication state / user id (@fehmer)#7539
Miodec merged 3 commits intomasterfrom
feature/authentication-signal

Conversation

@fehmer
Copy link
Member

@fehmer fehmer commented Feb 26, 2026

No description provided.

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Feb 26, 2026
@Miodec Miodec requested a review from Copilot February 26, 2026 18:56
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Feb 26, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a SolidJS signal-based authentication state management to track the user ID and login status. The signal is updated via Firebase's onAuthStateChanged callback.

Changes:

  • Add userId signal with getUserId/isLoggedIn derived state
  • Integrate setUserId calls in Firebase auth initialization and error paths

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
frontend/src/ts/signals/core.ts Adds userId signal and derived getUserId/isLoggedIn memos
frontend/src/ts/firebase.ts Updates userId signal in auth state changes and initialization errors

@Miodec Miodec merged commit bc41e4f into master Feb 26, 2026
13 checks passed
@Miodec Miodec deleted the feature/authentication-signal branch February 26, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants