Skip to content

Commit 808c0fd

Browse files
committed
chore: prettier
1 parent 076b2be commit 808c0fd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/sdk/oauth2-flows/AuthCodeAbstract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export abstract class AuthCodeAbstract {
295295
state,
296296
...rest
297297
} = options.authUrlParams;
298-
298+
299299
searchParamsObject = { ...rest, ...searchParamsObject };
300300

301301
if (lang) {

lib/sdk/oauth2-flows/AuthCodeWithPKCE.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export class AuthCodeWithPKCE extends AuthCodeAbstract {
4848
this.codeVerifier = verifier;
4949

5050
const providedState = options.state ?? options.authUrlParams?.state;
51-
51+
5252
this.state = providedState ?? utilities.generateRandomString();
53-
53+
5454
const setItem = isBrowserEnvironment()
5555
? (sessionManager as unknown as BrowserSessionManager).setSessionItemBrowser
5656
: sessionManager.setSessionItem;

lib/sdk/oauth2-flows/AuthorizationCode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ export class AuthorizationCode extends AuthCodeAbstract {
3737
options: AuthURLOptions = {}
3838
): Promise<URL> {
3939
const providedState = options.state ?? options.authUrlParams?.state;
40-
40+
4141
this.state =
4242
providedState ??
4343
((await sessionManager.getSessionItem(
4444
AuthorizationCode.STATE_KEY
4545
)) as string) ??
4646
utilities.generateRandomString();
47-
47+
4848
await sessionManager.setSessionItem(AuthorizationCode.STATE_KEY, this.state);
4949
const authURL = new URL(this.authorizationEndpoint);
5050
const authParams = this.generateAuthURLParams(options);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"postbuild": "node sdk-version.js clean && ncp ./package-cjs.json ./dist-cjs/package.json && ncp ./package-esm.json ./dist/package.json",
2727
"prebuild": "node sdk-version.js && rimraf dist dist-cjs lib/models lib/apis",
2828
"lint": "eslint . && prettier . --check",
29-
"lint:fix": "eslint --fix . && prettier . --check",
29+
"lint:fix": "eslint --fix . && prettier . --write",
3030
"test": "jest --passWithNoTests",
3131
"lint-staged": "lint-staged",
3232
"husky": "husky install",

0 commit comments

Comments
 (0)