The shape of user data you can use to personalize your docs
exp
claim of the JWT. The exp
claim determines when a JWT should no longer be considered valid, and should be set as low as possible. In this case, it can probably be set to 10 seconds or lower. The expiresAt
field determines when retrieved data should be considered stale, and can be anywhere from one day to several weeks.groups
field of a page’s metadata, that page will be shown.user
variable. For example, if you have supplied { firstName: 'Ronan' }
as your content field, you can use the following in your MDX: Good morning, {user.firstName}!
{ server: { subdomain: 'foo' } }
as my apiPlaygroundInputs
field, and this value will be prefilled on any API page with this subdomain
value.header
, query
, and cookie
fields will only be prefilled if they are part of your security scheme. Creating a standard header parameter named Authorization
is not sufficient to enable this feature. To know if a field will be prefilled, navigate to your existing docs and check if the field is in either the Authorization
or Server
section.