{"repo":"adrianmjim/nestjs-supabase-js","free":true,"listed":false,"github":"https://github.com/adrianmjim/nestjs-supabase-js","clone":"git clone https://github.com/adrianmjim/nestjs-supabase-js.git","description":"NestJS Supabase integration","language":"TypeScript","stars":41,"topics":["auth","authentication","database","module","nestjs","postgres","storage","supabase","supabase-auth","supabase-db"],"license":"MIT","category":"databases-storage","readme_excerpt":"Description The Supabase module for NestJS. Installation Install the dependencies via npm , pnpm or yarn : npm: pnpm: yarn: Configuration First, import the module into your NestJS application and configure it using the configuration key provided by Supabase. Or, You can configure it asynchronously as follows: Multiple connections In certain situations, we will need to connect to different Supabase projects, with this module this is possible: Or asynchronously: Usage First, inject the client into the module where you want to use it: Or, for a specific connection: Now you can use the Supabase client in any provider of your module: Or, for a specific connection: It's also possible to use the InjectSupabaseClient decorator to inject the Supabase client when you don't want to explicitly type it with the client: Authentication This library provides a base guard to authenticate requests using the Supabase auth client. Usage To create your own guard that authenticates against Supabase, you just need to create a new guard that extends BaseSupabaseAuthGuard and implements the method extractTokenFromRequest . This implementation should define how to extract the token from the request, which might be in the headers, cookies, or query parameters. Then, you can bind the guard as described in the NestJS documentation. 🤝 Contributing Contributions, issues and feature requests are welcome. Authors 👤 Adrián Martínez Jiménez - Github: @adrianmjim See also the list of contributors who particip","default_branch":null,"files":null,"tree":[],"storefront":"/r/adrianmjim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adrianmjim/nestjs-supabase-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}