mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 09:42:15 +03:00
feat(providers): add Cookie Editor fast-path to web session credential guide
The 'How to get the session credential' instructions in the provider add-connection modal only described the manual DevTools flow. Add a fast-path step using the Cookie Editor extension (export as Cookie header, select all numbered session-token chunks) and demote the DevTools walkthrough to the manual alternative. New i18n keys (webSessionGuideStep2Fast, webSessionGuideStep3Manual) ship in en.json; other locales fall back to English until translated.
This commit is contained in:
@@ -111,16 +111,16 @@ export default function WebSessionCredentialGuide({
|
||||
<li>
|
||||
{providerText(
|
||||
t,
|
||||
"webSessionGuideStep2",
|
||||
"Open the browser developer tools and inspect a request made by the web app."
|
||||
"webSessionGuideStep2Fast",
|
||||
"Fast path: install the Cookie Editor extension (chromewebstore.google.com → Cookie Editor), open it on the {provider} tab, find {credential} (select all numbered chunks if split), and click Export → Copy with the export format set to “Cookie header”.",
|
||||
{ provider: providerName, credential: requirement.credentialName }
|
||||
)}
|
||||
</li>
|
||||
<li>
|
||||
{providerText(
|
||||
t,
|
||||
"webSessionGuideStep3",
|
||||
"Copy the required credential from the provider's own domain. For cookies, copy only the Cookie header value and omit Cookie:.",
|
||||
{ credential: requirement.credentialName }
|
||||
"webSessionGuideStep3Manual",
|
||||
"Manual path: open the browser developer tools (F12 → Network), refresh the page, open an authenticated request, and copy the Cookie header value from Request Headers — omit the Cookie: prefix."
|
||||
)}
|
||||
</li>
|
||||
<li>
|
||||
|
||||
@@ -5999,7 +5999,9 @@
|
||||
"webTokenRequiredCredential": "Required token: {credential}",
|
||||
"webSessionGuideStep1": "Sign in to {provider} in your browser.",
|
||||
"webSessionGuideStep2": "Open the browser developer tools and inspect a request made by the web app.",
|
||||
"webSessionGuideStep2Fast": "Fast path: install the Cookie Editor extension (chromewebstore.google.com → Cookie Editor), open it on the {provider} tab, find {credential} (select all numbered chunks if split), and click Export → Copy with the export format set to “Cookie header”.",
|
||||
"webSessionGuideStep3": "Copy the required credential from the provider's own domain. For cookies, copy only the Cookie header value and omit Cookie:.",
|
||||
"webSessionGuideStep3Manual": "Manual path: open the browser developer tools (F12 → Network), refresh the page, open an authenticated request, and copy the Cookie header value from Request Headers — omit the Cookie: prefix.",
|
||||
"webSessionGuideStep4": "Paste it here and check the connection. If it stops working, sign in again and replace it with a fresh value.",
|
||||
"webSessionSecurityHint": "Treat this like a password: it may access your signed-in web account until it expires or is revoked.",
|
||||
"webNoAuthGuideTitle": "No credential required",
|
||||
|
||||
Reference in New Issue
Block a user