Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.

Commit 7792d49

Browse files
committed
fix: fix typescript compiling wrong return types
fixes #131
1 parent 1f3122c commit 7792d49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/publicClientApplication.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class PublicClientApplication implements IPublicClientApplication {
2222
return this;
2323
}
2424

25-
public async acquireToken(params: MSALInteractiveParams) {
25+
public async acquireToken(params: MSALInteractiveParams): Promise<MSALResult | undefined> {
2626
const { promptType, ...paramsWithoutPromptType } = params;
2727
const { accessToken, account, expiresOn, idToken, idTokenClaims, scopes, tenantId } =
2828
await this._pca.acquireTokenPopup(
@@ -45,7 +45,7 @@ export class PublicClientApplication implements IPublicClientApplication {
4545
return result;
4646
}
4747

48-
public async acquireTokenSilent(params: MSALSilentParams) {
48+
public async acquireTokenSilent(params: MSALSilentParams): Promise<MSALResult | undefined> {
4949
const { accessToken, account, expiresOn, idToken, idTokenClaims, scopes, tenantId } =
5050
await this._pca.acquireTokenSilent({
5151
...params,
@@ -84,7 +84,7 @@ export class PublicClientApplication implements IPublicClientApplication {
8484
);
8585
}
8686

87-
public getAccount(accountIdentifier: string) {
87+
public getAccount(accountIdentifier: string): Promise<MSALAccount | undefined> {
8888
const account = this._pca.getAccountByHomeId(accountIdentifier);
8989
if (account == null) {
9090
return Promise.reject(Error('Account not found'));

0 commit comments

Comments
 (0)