feat(firebase): decouple package from supertokens - #1118
Merged
Conversation
KabinKhandThakuri
force-pushed
the
feat/decouple-firebase
branch
from
June 5, 2026 07:21
b066ce7 to
380b1ee
Compare
…ationInput interface
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@prefabs.tech/fastify-firebasefrom directsupertokens-nodeusage so the package no longer depends on that runtime integrationsendNotificationinput with the REST contract by usingmessageinstead ofbody, while still mapping to Firebasenotification.bodyinternallyTest plan
pnpm --filter @prefabs.tech/fastify-firebase testsendNotification(data: { body })tosendNotification(data: { message })