Skip to main content

getToken

Retrieves the CSRF token from session storage or local storage.

Example

get-token.js
const token = getToken();