forked from microsoftgraph/msgraph-sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDummyAuthenticationProvider.ts
More file actions
30 lines (27 loc) · 897 Bytes
/
Copy pathDummyAuthenticationProvider.ts
File metadata and controls
30 lines (27 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/**
* @module DummyAuthenticationProvider
*/
import { AuthenticationProvider } from "../src/IAuthenticationProvider";
/**
* @class
* @implements AuthenticationProvider
* Class representing DummyAuthenticationProvider
*/
export class DummyAuthenticationProvider implements AuthenticationProvider {
/**
* @public
* @async
* To get the access token
* @returns The promise that resolves to an access token
*/
public async getAccessToken(): Promise<string> {
const token = "DUMMY_TOKEN";
return Promise.resolve(token);
}
}