web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.19k stars 108 forks source link

[Feature]: documentation on cross application secret #1149

Open zmzlois opened 3 weeks ago

zmzlois commented 3 weeks ago

What problem does this feature solve?

Providing user copy-pastable code blocks with API key

What does the proposed API look like?

Not necessarily a feature we will have but, I guess this could be added in rspress docs as example - if a user sign in on other site, we sign them a JWT token (say including username, API key for example) in cookie or in dotfiles, we want to locate that (application and doc site are very likely on different site), decrypt it and let their API key copy-pastable within code block (Sentry doc style)

Timeless0911 commented 3 weeks ago

I'm not quite get this point. If necessary, users can implement it themselves hmm.