Skip to content

Conversation

vehm
Copy link

@vehm vehm commented Oct 8, 2024

Did a few things:

  • Updated the declaration merging FastifyRequest interface to include supabaseClient.
  • Made serviceKey optional to allow for users to register the plugin without creating a potentially dangerous client (using service_role) that bypasses all RLS policies for Supabase.
  • Exported the FastifySupabasePluginOpts from index.ts

Fixes #28
Fixes #34

@vehm vehm changed the title Updated declaration merging interface, made serviceKey optional Updated declaration merging interface, made serviceKey optional, exported plugin opts interface Oct 8, 2024
@vehm
Copy link
Author

vehm commented Oct 28, 2024

Updated Fastify decoration reference type for v5 support:
Decorating Request/Reply with a reference type (Array, Object) is now prohibited as this reference is shared amongst all requests.

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.

export interface Fastify Request has _supabaseClient instead of supabaseClient Export the type FastifySupabasePluginOpts

1 participant