Repository navigation
@fumadocs/language@0.2.14
·
9 commits
to dev
since this release
All security schemes in the API playground
- Support OAuth 2.0
deviceAuthorizationflows,openIdConnectschemes and PKCE. - OAuth requests with a client secret and device flows go through
proxyUrlwhen set, allow your authorization server inallowedOrigins. - The OAuth panel remembers the client ID.
mutualTLSschemes no longer send anAuthorizationheader.- Headless:
useOpenIdConnectFlows(),stfandreturnedofusePlaygroundAuth(),requestOAuthToken()acceptsonUserCode,signalandproxyUrl. - Playgrounds on a page share their auth values,
useAuthFields().mapValues()reads them from the page. - The playground reopens after OAuth flows return in client-rendered sites.
- Returning OAuth flows no longer switch the security requirement of other playgrounds.
- Added translation keys to
@fumadocs/language.
Redesign the example request and response
- Titled cards with selects instead of tabs, for the language, the response status and the examples of webhooks.
- A Schema switch shows the JSON Schema of example responses.
- Webhook examples show their body and parameters in sections instead of accordions.
- The playground shows its code usages under a Request header, in the language selected on the page.
- The playground shows response descriptions in full, in the Response header.
- Added translation keys to
@fumadocs/language.