Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

HttpXsrfTokenExtractor

Retrieves the current XSRF token to use with the next outgoing request.

      
      abstract class HttpXsrfTokenExtractor {
abstract getToken(): string | null }

Provided in

Methods

Get the XSRF token to use with an outgoing request.

      
      abstract getToken(): string | null
    
Parameters

There are no parameters.

Returns

string | null

Will be called for every request, so the token may change between requests.