MCPcopy
hub / github.com/joeferner/redis-commander / refreshQueryToken

Function refreshQueryToken

web/static/scripts/redisCommander.js:1749–1761  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1747
1748$(function() {
1749 function refreshQueryToken() {
1750 $.post(signinPath, {}, function (data, status) {
1751 if ((status !== 'success') || !data || !data.ok) {
1752 console.error('Cannot refresh query token');
1753 return;
1754 }
1755 sessionStorage.setItem('redisCommanderBearerToken', data.bearerToken);
1756 sessionStorage.setItem('redisCommanderQueryToken', data.queryToken);
1757 })
1758 .fail(function(err) {
1759 console.error('Failed to refresh query token', err);
1760 });
1761 }
1762
1763 /**
1764 * Export redis data.

Callers 1

redisCommander.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected