Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Packstack-Tech/packstack
/ setTokenIfValid
Method
setTokenIfValid
frontend/src/lib/jwt.ts:56–64 ·
view source on GitHub ↗
(t: string)
Source
from the content-addressed store, hash-verified
54
}
55
56
private setTokenIfValid(t: string) {
57
try {
58
this.tokenPayload = jwtDecode(t);
59
this.token = t;
60
} catch (e) {
61
this.tokenPayload = null;
62
this.token =
''
;
63
}
64
}
65
}
Callers
2
constructor
Method · 0.95
setToken
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected