IAuthorizationTokenProvider interface
Interface for a class that can retrieve authorization tokens to be used in fetch requests.
Methods
get |
Gets the authorization header to use in a fetch request |
Method Details
getAuthorizationHeader(boolean)
Gets the authorization header to use in a fetch request
function getAuthorizationHeader(forceRefresh?: boolean): Promise<string>
Parameters
- forceRefresh
-
boolean
If true, indicates that we should get a new token, if applicable for current provider.
Returns
Promise<string>
the value to use for the Authorization header in a request.
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per