2 Replies
Hi @reactt. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
In refine, you can set the authorization token by using an auth provider. The auth provider is an object that contains methods to handle authentication and authorization in your app. You can create a custom auth provider and set the authorization token in the headers of your API calls using an HTTP client like axios.
Here's an example of setting the authorization token using axios:
You can then pass the auth provider to the
<Refine>
component as a prop:
For more information on creating an auth provider from scratch, refer to the Create Auth Provider From Scratch tutorial (https://refine.dev/docs/tutorial/understanding-authprovider/create-authprovider/).
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@1048996483648725093> kapa.ai is still learning and improving, please let us how it did by reacting below