Skip to content

feat(firebase): decouple package from supertokens - #1118

Merged
premsgr merged 9 commits into
mainfrom
feat/decouple-firebase
Aug 4, 2026
Merged

feat(firebase): decouple package from supertokens#1118
premsgr merged 9 commits into
mainfrom
feat/decouple-firebase

Conversation

@KabinKhandThakuri

@KabinKhandThakuri KabinKhandThakuri commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • decouple @prefabs.tech/fastify-firebase from direct supertokens-node usage so the package no longer depends on that runtime integration
  • align GraphQL sendNotification input with the REST contract by using message instead of body, while still mapping to Firebase notification.body internally
  • update Firebase package tests and docs to reflect the notification input contract

Test plan

  • pnpm --filter @prefabs.tech/fastify-firebase test
  • Verify downstream GraphQL consumers update sendNotification(data: { body }) to sendNotification(data: { message })

@KabinKhandThakuri
KabinKhandThakuri force-pushed the feat/decouple-firebase branch from b066ce7 to 380b1ee Compare June 5, 2026 07:21
@KabinKhandThakuri KabinKhandThakuri changed the title feat(firbase): decouple package from supertokens feat(firebase): decouple package from supertokens Jun 5, 2026
KabinKhandThakuri and others added 8 commits June 5, 2026 14:15
Update firebase docs to describe the host-provided auth contract
after removing the direct SuperTokens dependency.

Remove leftover test and build references from the package.
Restore body as the public notification input field for REST,
GraphQL, exported types, tests, and docs to avoid
consumer-facing breakage from the message rename.
Remove firebase's public verifySession augmentation to avoid
conflicts with host auth plugins.

Update the firebase docs to reflect the restored body field
and auth-agnostic session examples.
Drop the cast helper and call fastify.verifySession() directly from route controllers.
@premsgr
premsgr merged commit 4191a54 into main Aug 4, 2026
3 checks passed
@premsgr
premsgr deleted the feat/decouple-firebase branch August 4, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants