tuist/projects/cloud/app/frontend/utilities/csrfToken.ts

6 lines
126 B
TypeScript

const csrfToken = document
?.querySelector('meta[name=csrf-token]')
?.getAttribute('content');
export default csrfToken;