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.
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de