Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
4755f4e
build(deps): update core dependency to latest commit
fulleni Nov 7, 2025
62b4377
feat(notifications): add environment variables for push notifications
fulleni Nov 7, 2025
a0df8f5
feat(database): add isBreaking field to existing Headline documents
fulleni Nov 7, 2025
35490a5
feat(database): add migration to introduce isBreaking field in headlines
fulleni Nov 7, 2025
04c2df5
feat(core): add IPushNotificationClient interface
fulleni Nov 7, 2025
62355f5
feat(notifications): add Firebase Cloud Messaging client implementation
fulleni Nov 7, 2025
76b6065
feat(push-notification): implement OneSignal push notification client
fulleni Nov 7, 2025
79e9beb
feat(push-notification): implement push notification service
fulleni Nov 7, 2025
d771d16
feat(rbac): add permission for sending breaking news notifications
fulleni Nov 7, 2025
7bccf20
feat(rbac): add push notification permission for dashboard publishers
fulleni Nov 7, 2025
e6c7701
feat(config): add environment variables for Firebase and OneSignal
fulleni Nov 7, 2025
2f69a26
feat(routes): integrate push notification service
fulleni Nov 7, 2025
2d2de04
feat(push-notification): implement push notification service and infr…
fulleni Nov 7, 2025
ec916f7
feat(headline): add breaking news notification
fulleni Nov 7, 2025
f928619
perf(database): optimize query for updating headlines with isBreaking…
fulleni Nov 8, 2025
f59192f
feat(push-notification): implement token providers for Firebase and O…
fulleni Nov 8, 2025
83b05c6
fix(config): correct environment variable name for OneSignal API key
fulleni Nov 8, 2025
13bfac8
feat(DataOperationRegistry): enhance breaking news notification process
fulleni Nov 8, 2025
4331d5e
feat(limit_service): add notification subscription limits
fulleni Nov 8, 2025
bbdc33d
feat(database): add indexes for push notification collections
fulleni Nov 8, 2025
ef8d582
feat(push-notification): add bulk notification send function
fulleni Nov 8, 2025
c1a0d71
feat(firebase_push_notification_client): implement bulk messaging wit…
fulleni Nov 8, 2025
0f81647
refactor(notifications): implement bulk sending for OneSignal client
fulleni Nov 8, 2025
87fdb79
refactor(push-notification): optimize breaking news notification deli…
fulleni Nov 8, 2025
b5dcc80
docs(README): add detailed description of notification features
fulleni Nov 8, 2025
28d9b52
style: format
fulleni Nov 8, 2025
957edd9
refactor(user): improve notification subscription limit logic
fulleni Nov 8, 2025
3e87476
refactor(push-notification): remove unused user repository dependency
fulleni Nov 8, 2025
1566650
refactor(lib): remove unnecessary null check for pushConfig
fulleni Nov 8, 2025
a182a17
fix(database): add missing notificationSubscriptions field to user seed
fulleni Nov 8, 2025
7328e4b
fix(auth_service): add notificationSubscriptions to create method
fulleni Nov 8, 2025
3baf1e8
feat(rbac): add user-owned push notification device permissions
fulleni Nov 8, 2025
f34f46e
feat(push_notification): implement device registration and deletion
fulleni Nov 8, 2025
133e4d5
build(deps): update core dependency
fulleni Nov 8, 2025
5cb3e61
feat(database): add push notification config to remote config
fulleni Nov 8, 2025
e16d63c
refactor(config): correctly configure push notification clients
fulleni Nov 8, 2025
1a351ac
refactor(notifications): simplify IPushNotificationClient interface
fulleni Nov 8, 2025
acfaf32
refactor(notifications): align Firebase client with new architecture
fulleni Nov 8, 2025
3fea4a7
refactor(notifications): align OneSignal client with new architecture
fulleni Nov 8, 2025
2fb5649
refactor(notifications): implement server-authoritative push logic
fulleni Nov 8, 2025
036427b
refactor(notifications): implement fire-and-forget for breaking news
fulleni Nov 8, 2025
a6fba3f
feat(database): add unique indexes for push notification provider tokens
fulleni Nov 8, 2025
3827b21
fix(notifications): remove unnecessary formatting and headers
fulleni Nov 8, 2025
493e8cd
fix(database): correctly implement push notification config migration
fulleni Nov 8, 2025
f411cfd
style: format
fulleni Nov 8, 2025
4b26c01
fix(firebase): replace Dio with HttpClient for OAuth token exchange
fulleni Nov 8, 2025
569a8f7
refactor(dependencies): improve code structure and remove unused import
fulleni Nov 8, 2025
fe66da2
build(deps): update http-client to version 1.1.0
fulleni Nov 8, 2025
80e87f9
style: format
fulleni Nov 8, 2025
71d8b79
refactor(notifications): implement Firebase token provider for HTTP c…
fulleni Nov 8, 2025
1e9ace6
Revert "refactor(notifications): implement Firebase token provider fo…
fulleni Nov 8, 2025
e47e4ab
refactor(firebase): extract Firebase access token logic into separate…
fulleni Nov 8, 2025
b8e03b2
fix(firebase_push_notification_client): improve error handling and lo…
fulleni Nov 8, 2025
99e39bd
feat(auth): create dedicated FirebaseAuthenticator service
fulleni Nov 8, 2025
44d4357
refactor(auth): integrate FirebaseAuthenticator service
fulleni Nov 8, 2025
0d0edbe
refactor(auth): provide FirebaseAuthenticator in root middleware
fulleni Nov 8, 2025
6c30ed5
refactor(config): make push credentials optional
fulleni Nov 8, 2025
43c748f
refactor(push): implement conditional push notification client initia…
fulleni Nov 8, 2025
5de379a
refactor(push): make notification service resilient to null clients
fulleni Nov 8, 2025
7ec5e75
docs(env): update documentation for conditional environment variables
fulleni Nov 8, 2025
f0badfb
fix(auth): correct null-safety in firebase authenticator
fulleni Nov 8, 2025
ca9f23c
fix(deps): correct nullable provider and import order
fulleni Nov 8, 2025
85150c4
style: format
fulleni Nov 8, 2025
30d5d02
fix(config): treat empty env variables as null
fulleni Nov 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(auth): correct null-safety in firebase authenticator
Adds a null-assertion operator to `firebasePrivateKey` within the `FirebaseAuthenticator`. This is safe as the authenticator is only created when all Firebase credentials are confirmed to be non-null, resolving the compile-time error.
  • Loading branch information
fulleni committed Nov 8, 2025
commit f0badfbae1114202040080ecc8c0e59fc81674e5
2 changes: 1 addition & 1 deletion lib/src/services/firebase_authenticator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FirebaseAuthenticator implements IFirebaseAuthenticator {
_log.info('Requesting new Firebase access token...');
try {
// Step 1: Create and sign the JWT.
final pem = EnvironmentConfig.firebasePrivateKey.replaceAll(r'\n', '\n');
final pem = EnvironmentConfig.firebasePrivateKey!.replaceAll(r'\n', '\n');
final privateKey = RSAPrivateKey(pem);
final jwt = JWT(
{'scope': 'https://www.googleapis.com/auth/cloud-platform'},
Expand Down
Loading