Refine

R

Refine

Join the community to ask questions about Refine and get answers from other members.

Join

ask-any-question

discussions

xenial-black
xenial-black5/23/2024

Are there any examples of authentication using Django Rest Framework?

Any tips/direction on authenticating using Django's auth system or DRF?
deep-jade
deep-jade5/23/2024

Which NPM package contains the refine binary?

I need to move the Refine base binary / package to an air-gapped system. When creating a Refine app using npx and create-refine-app, the refine binary is dropped into one's NPM bin. However, I'd like to know what the corresponding package is that provides this binary. npm install create-refine-app does not appear to contain any binaries. Your help is appreciated.
stormy-gold
stormy-gold5/23/2024

I got this error, althought I fill the env.local file with the data, I use nextjs

I wonder what's the issue is? I read that next js automatically handle env variables
No description
correct-apricot
correct-apricot5/22/2024

useDataGrid & React Query Stale Time

Hello, I am running into an issue with useDataGrid (Material UI) and React Query. I am specifying the stale time as 5 minutes as given below. However every time I navigate to the page containing grid component, I can see React Query firing a query to refresh the cache. It does not wait for 5 minutes which is what I was expecting. const { dataGridProps, filters, setFilters, setCurrent } = useDataGrid<DataType>({ sorters: { initial: initialSorters,...
fair-rose
fair-rose5/22/2024

useCustomMutation authorization issue

Hello, I am using GraphQL, and I want to send a mutation to verify the two-factor authentication of a user then logs him in, everything is good with the backend, it works well when testing with postman, but when trying to implement it in my refine app I get "Unauthorized" error despite passing the Authorization bearer token in the headers, here is what I do: ```ts loginTwoFactorAuthentication({...
conscious-sapphire
conscious-sapphire5/22/2024

Any suggestions for report designer integration in refine?

any suggestions for report designer integration in refine, We are loooking for something like ActiveReport JS which can work with Refine!
variable-lime
variable-lime5/22/2024

Issue with Keycloak Authentication and Custom Login in React Refine

I'm experiencing an issue with Keycloak authentication in my React Refine application. I use a custom login flow that interacts with an API endpoint to authenticate users and retrieve tokens. However, after login, keycloak.authenticated remains false, and the user is not recognized as authenticated. Additionally, on refreshing the page, the user is redirected to the login screen again. When I don't use custom login, so I do from keycloak login flow, useKeycloak hook is populated as exacted. Thank you in advance!...
dependent-tan
dependent-tan5/22/2024

Passing query options to auth provider methods

Hi everyone, I am working on implementing a custom auth provider for my refine app. One of my requirements is to be able to check for an auth token in the check method of the auth provider, and I would like to be able to pass some react query options to the check method (mainly override the stale time and force the refetch on window focus) - Is there a way to do this? I can see the check query cached but it has default options at the moment....
rare-sapphire
rare-sapphire5/22/2024

is there a sample notification component i could reuse

is there a sample notification component which i could reuse
stormy-gold
stormy-gold5/22/2024

How to make an update for fields by type in Inferencer?

Inferencer didn't update component by type field
absent-sapphire
absent-sapphire5/21/2024

Update styling for ScrollArea dependent on URL

I have different styling on the mantine ScrollArea component dependent on whether the user is logged in. setIsAuthenticated(!['/login', '/register', '/forgot-password', to].includes(path)); }, [location]); ...
absent-sapphire
absent-sapphire5/20/2024

TimePicker and TimePicker issues

I got a problem with this line of code. When I delete "<Input/>" the page turns white deleting everything. How can I solve this? <Form.Item label={"Fecha de creación"} name={["fecha_creacion"]}...
xenial-black
xenial-black5/20/2024

useForm redirect custom resource

how do i redirect to a custom page after useForm subimit using redirect prop
conscious-sapphire
conscious-sapphire5/18/2024

ant-design darkmode not working as expected from new template via refine.new

Hi, I just downloaded a pre-built template via refine.new to see if an issue with darkmod was on my end or not. Upon downloading the new template, darkmod is not behaving as shown on refine.new....
absent-sapphire
absent-sapphire5/17/2024

Base64encode params in list view

Is there anyway I could Base64encode params in URL in the list view would need to be automatically encoded and decoded
absent-sapphire
absent-sapphire5/17/2024

Style Create Button

Can I change the text on a create button to Add and use a custom svg icon or do I need to use swizzle?
wise-white
wise-white5/17/2024

Programmatically update value of Autocomplete

Hello, I am using useAutocomplete which is working great so far but I am trying to implement an additional scenario which involves updating the autocomplete value programmatically. The problem I am having at the moment is that the UI of the autoccomplete is not updated when I use the setValue method of the form. If I am explicitly setting the value property of the autocomplete everything works but I am wondering if there is a better way to handle this so that I do not have to add an additional state to my component. Here is the definition of my autocomplete:...
mute-gold
mute-gold5/17/2024

Specific VITE env variable not caught

dataProvider={icDataProvider(import.meta.env.VITE_DATA_PROVIDER_BACKEND_URL)} Every other env var I set up works, and in the Docker I do see the value when I run printenv: VITE_DATA_PROVIDER_BACKEND_URL=http://localhost:3001...
other-emerald
other-emerald5/17/2024

I want change the "refine project" in sidebar to my own name. How to do it

I want change the "refine project" in sidebar to my own name. How to do it
other-emerald
other-emerald5/17/2024

can some one say how to edit sidebar of the example. I cant find a place

can some one say how to edit sidebar of the example. I cant find a place