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.
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de