MCPcopy 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

1function getCsrfToken(doc = document) {
2 return getCsrfTokenElement(doc).getAttribute("content");
3}
4
5function getCsrfTokenElement(doc) {
6 return doc.querySelector("meta[name='csrf-token']");

Callers 15

shutdownFunction · 0.85
updateFunction · 0.85
deleteAllUsersFunction · 0.85
addUserFunction · 0.85
updateUserPasswordFunction · 0.85
deleteUserFunction · 0.85
loginFunction · 0.85
logoutFunction · 0.85
setRequiresHttpsFunction · 0.85
changeHostnameFunction · 0.85
enableWifiFunction · 0.85

Calls 1

getCsrfTokenElementFunction · 0.85

Tested by

no test coverage detected