Is it possible to call fetch and load data within a docusaurs page / document #4499
Replies: 2 comments
-
It is possible to call an authenticated api client-side using You'll need to make sure that those data are not server-rendered, and use the BrowserOnly API for example: https://docusaurus.io/docs/docusaurus-core#browseronly I don't know what AAD auth is but anything you can do with Create-React-App should be doable with Docusaurus as well. |
Beta Was this translation helpful? Give feedback.
-
if by AAD auth you mean Azure Active Directory authentication you can try using: https://www.npmjs.com/package/react-aad-msal |
Beta Was this translation helpful? Give feedback.
-
I want to render the output of a web request using the fetch() api. This request needs to be secured (so AAD auth).
Is that possible in docusaurus?
Beta Was this translation helpful? Give feedback.
All reactions