MCPcopy
hub / github.com/coder/mux / getStoredAuthToken

Function getStoredAuthToken

src/browser/components/AuthTokenModal/AuthTokenModal.tsx:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34const AUTH_TOKEN_STORAGE_KEY = "mux:auth-token";
35
36export function getStoredAuthToken(): string | null {
37 try {
38 return localStorage.getItem(AUTH_TOKEN_STORAGE_KEY);
39 } catch {
40 return null;
41 }
42}
43
44export function setStoredAuthToken(token: string): void {
45 try {

Callers 5

getServerAuthTokenFunction · 0.90
getServerAuthTokenFunction · 0.90
getServerAuthTokenFunction · 0.90
getServerAuthTokenFunction · 0.90
ManagedAPIProviderFunction · 0.90

Calls 1

getItemMethod · 0.65

Tested by

no test coverage detected