MCPcopy
hub / github.com/chartbrew/chartbrew / getAuthToken

Function getAuthToken

client/src/modules/auth.js:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3export const tokenKey = "brewToken";
4
5export function getAuthToken() {
6 const token = cookie.load(tokenKey);
7 // if (!token) {
8 // throw new Error("No Token");
9 // }
10 return token;
11}
12
13export function removeAuthToken() {
14 cookie.remove(tokenKey, { path: "/" });

Callers 15

connectMethod · 0.90
_onAskAiFunction · 0.90
_onConnectSlackFunction · 0.90
_onConnectSlackFunction · 0.90
project.jsFile · 0.90
chart.jsFile · 0.90
savedQuery.jsFile · 0.90
team.jsFile · 0.90
integration.jsFile · 0.90
dataset.jsFile · 0.90
connection.jsFile · 0.90
template.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected