Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/tiny-pilot/tinypilot
/ getCsrfToken
Function
getCsrfToken
app/static/js/controllers.js:1–3 ·
view source on GitHub ↗
(doc = document)
Source
from the content-addressed store, hash-verified
1
function
getCsrfToken(doc = document) {
2
return
getCsrfTokenElement(doc).getAttribute(
"content"
);
3
}
4
5
function
getCsrfTokenElement(doc) {
6
return
doc.querySelector(
"meta[name='csrf-token']"
);
Callers
15
shutdown
Function · 0.85
update
Function · 0.85
deleteAllUsers
Function · 0.85
addUser
Function · 0.85
updateUserPassword
Function · 0.85
updateCurrentUserPassword
Function · 0.85
deleteUser
Function · 0.85
login
Function · 0.85
logout
Function · 0.85
setRequiresHttps
Function · 0.85
changeHostname
Function · 0.85
enableWifi
Function · 0.85
Calls
1
getCsrfTokenElement
Function · 0.85
Tested by
no test coverage detected