UNPKG

1.22 kBTypeScriptView Raw
1/**
2 * -------------------------------------------------------------------------------------------
3 * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4 * See License in the project root for license information.
5 * -------------------------------------------------------------------------------------------
6 */
7import { AuthenticationProvider } from "./IAuthenticationProvider";
8import { AuthProvider } from "./IAuthProvider";
9/**
10 * @class
11 * Class representing CustomAuthenticationProvider
12 * @extends AuthenticationProvider
13 */
14export declare class CustomAuthenticationProvider implements AuthenticationProvider {
15 /**
16 * @private
17 * A member to hold authProvider callback
18 */
19 private provider;
20 /**
21 * @public
22 * @constructor
23 * Creates an instance of CustomAuthenticationProvider
24 * @param {AuthProviderCallback} provider - An authProvider function
25 * @returns An instance of CustomAuthenticationProvider
26 */
27 constructor(provider: AuthProvider);
28 /**
29 * @public
30 * @async
31 * To get the access token
32 * @returns The promise that resolves to an access token
33 */
34 getAccessToken(): Promise<any>;
35}