feat(embed): always show channel key via detail API
Fetch publish tokens when opening an embed channel drawer so deploy snippets stay available after browser restarts, while list endpoints still omit secrets.
This commit is contained in:
@@ -2340,7 +2340,8 @@ export default {
|
||||
rotatePublishToken: 'Rotate publish token',
|
||||
channelKey: 'Channel key',
|
||||
channelKeyDesc: 'Long-lived secret for third-party site integration—store it safely',
|
||||
channelKeyHint: 'For security, channel keys are not returned in list APIs. If you did not save it, reset to generate a new key (stored for this browser session).',
|
||||
channelKeyHint: 'Failed to load the channel key. Close and reopen this channel, or refresh the page.',
|
||||
channelKeyLoadFailed: 'Failed to load channel key',
|
||||
channelKeyUnavailable: 'Key unavailable',
|
||||
resetKeyTitle: 'Reset channel key',
|
||||
resetKeyConfirmOk: 'Reset',
|
||||
@@ -2387,8 +2388,8 @@ export default {
|
||||
headerTitleModeChannel: 'Fixed channel title',
|
||||
headerTitleModeSession: 'Follow session title',
|
||||
headerTitleModeDesc: 'Fixed: always show the page title. Session: auto-title from the first message; falls back to page title until generated.',
|
||||
tokenHint: 'For security, channel keys are not returned in list APIs. Save the key when creating or resetting before copying the widget snippet (stored for this browser session).',
|
||||
createdWithToken: 'Embed channel created — the new key is shown in the input field; copy and store it now',
|
||||
tokenHint: 'Failed to load the channel key. Close and reopen this channel.',
|
||||
createdWithToken: 'Embed channel created — the channel key is shown below',
|
||||
created: 'Embed channel created',
|
||||
updated: 'Embed channel updated',
|
||||
saveFailed: 'Save failed',
|
||||
@@ -2411,7 +2412,7 @@ export default {
|
||||
positionTopRight: 'Top right',
|
||||
positionTopLeft: 'Top left',
|
||||
publishToken: 'Channel key',
|
||||
publishTokenHelp: 'The channel key (em_…) is a long-lived secret for this embed channel—like an API key. It is shown only when created or reset and must be placed in the host site widget script; list APIs never return it.',
|
||||
publishTokenHelp: 'The channel key (em_…) is a long-lived secret for this embed channel—like an API key. Open the channel details to view and copy it; resetting invalidates the previous key immediately.',
|
||||
sessionTokenHelp: 'After a visitor opens chat, the iframe exchanges the channel key for a short-lived session credential (ems_…, ~30 min). Later API calls use the session credential so the channel key is not kept in the URL.',
|
||||
rotateTokenHelp: 'Resetting invalidates the previous channel key. Every deployed embed snippet must be updated or third-party sites will lose access.',
|
||||
revealToken: 'Reveal',
|
||||
|
||||
Reference in New Issue
Block a user