Skip to content

Commit 50e19ba

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent c33aa21 commit 50e19ba

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

packages-exp/auth-exp/src/api/authentication/token.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { _ENDPOINT, requestStsToken } from './token';
2828
use(chaiAsPromised);
2929

3030
describe('requestStsToken', () => {
31-
const {apiKey, tokenApiHost, apiScheme} = mockAuth.config;
31+
const { apiKey, tokenApiHost, apiScheme } = mockAuth.config;
3232
const endpoint = `${apiScheme}://${tokenApiHost}/${_ENDPOINT}?key=${apiKey}`;
3333
beforeEach(fetch.setUp);
3434
afterEach(fetch.tearDown);

packages-exp/auth-exp/src/api/authentication/token.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ export async function requestStsToken(
4242
auth: Auth,
4343
refreshToken: string
4444
): Promise<RequestStsTokenResponse> {
45-
const response = await performFetchWithErrorHandling<RequestStsTokenServerResponse>(auth, {}, () => {
45+
const response = await performFetchWithErrorHandling<
46+
RequestStsTokenServerResponse
47+
>(auth, {}, () => {
4648
const body = querystring({
4749
'grant_type': GRANT_TYPE,
4850
'refresh_token': refreshToken
4951
}).slice(1);
50-
const {apiScheme, tokenApiHost, apiKey, sdkClientVersion} = auth.config;
52+
const { apiScheme, tokenApiHost, apiKey, sdkClientVersion } = auth.config;
5153
const url = `${apiScheme}://${tokenApiHost}/${_ENDPOINT}`;
5254

5355
return fetch(`${url}?key=${apiKey}`, {

packages-exp/auth-exp/src/core/auth/auth_impl.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ import { inMemoryPersistence } from '../persistence/in_memory';
3030
import { PersistenceUserManager } from '../persistence/persistence_user_manager';
3131
import { ClientPlatform, getClientVersion } from '../util/version';
3232
import {
33-
DEFAULT_API_HOST, DEFAULT_API_SCHEME, DEFAULT_TOKEN_API_HOST, initializeAuth
33+
DEFAULT_API_HOST,
34+
DEFAULT_API_SCHEME,
35+
DEFAULT_TOKEN_API_HOST,
36+
initializeAuth
3437
} from './auth_impl';
3538

3639
use(sinonChai);

packages-exp/auth-exp/src/core/user/token_manager.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ describe('core/user/token_manager', () => {
7878
context('with endpoint setup', () => {
7979
let mock: fetch.Route;
8080
beforeEach(() => {
81-
const {apiKey, tokenApiHost, apiScheme} = mockAuth.config;
82-
const endpoint =
83-
`${apiScheme}://${tokenApiHost}/${_ENDPOINT}?key=${apiKey}`;
81+
const { apiKey, tokenApiHost, apiScheme } = mockAuth.config;
82+
const endpoint = `${apiScheme}://${tokenApiHost}/${_ENDPOINT}?key=${apiKey}`;
8483
mock = fetch.mock(endpoint, {
8584
'access_token': 'new-access-token',
8685
'refresh_token': 'new-refresh-token',

packages-exp/auth-exp/src/core/user/token_manager.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ export class StsTokenManager {
9494
auth,
9595
oldToken
9696
);
97-
this.updateTokensAndExpiration(accessToken || null, refreshToken || null, expiresIn || null);
97+
this.updateTokensAndExpiration(
98+
accessToken || null,
99+
refreshToken || null,
100+
expiresIn || null
101+
);
98102
}
99103

100104
private updateTokensAndExpiration(

0 commit comments

Comments
 (0)