refine use supabase for authProvider and nest js query for dataProvider
Can use supabase for authProvider and NestJS-Query for dataProvider in one project?
2 Replies
Hi @chachi. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, you can use Supabase for the
authProvider
and NestJS-Query for the dataProvider
in one project with Refine. Refine is designed to be flexible and allows you to integrate different services for authentication and data handling.
Setting Up Supabase for authProvider
To use Supabase for authentication, you need to configure the authProvider
in your project. Here is an example of how you can add a register
method to the authProvider.ts
file:
(Source: GitHub Issue #4204 (https://github.com/refinedev/refine/issues/4204))
Setting Up NestJS-Query for dataProvider
To use NestJS-Query for the dataProvider
, you need to configure it in your Refine project. Here is an example of how you can set up a dataProvider
in your App.tsx
file:
(Source: Documentation on Tables and Relationships (https://refine.dev/docs/guides-concepts/tables/#relationships-))
Combining Both in One Project
You can combine both configurations in your Refine project. Ensure that you have both the authProvider
and dataProvider
properly set up and imported in your main application file.
For more detailed information, you can refer to the Refine documentation (https://refine.dev/docs/) and the specific sections on authentication (https://refine.dev/docs/core/auth-provider/) and data providers (https://refine.dev/docs/data/data-provider/).
If you need further assistance, feel free to ask!
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@95552725294518272> kapa.ai is still learning and improving, please let us know how it did by reacting below