W3cubDocs

/Angular

HttpXsrfTokenExtractor

class

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.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/http/HttpXsrfTokenExtractor