shouldIncludeToken

open fun shouldIncludeToken(method: HttpMethod, path: String): Boolean

Determines whether to include the authentication token in the request. Can be overridden to customize behavior based on method and path. By default, it returns true for all requests.

Return

True if the token should be included, false otherwise.

Parameters

method

The HTTP method of the request.

path

The path of the request.