From ace6efbdba20c61c9b24a65e3eb49ecb370dcd33 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolski Date: Thu, 1 Sep 2022 18:40:58 +0200 Subject: [PATCH] Change default file name for FileAPL --- src/APL/fileAPL.test.ts | 2 +- src/APL/fileAPL.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/APL/fileAPL.test.ts b/src/APL/fileAPL.test.ts index 9558f15..280107b 100644 --- a/src/APL/fileAPL.test.ts +++ b/src/APL/fileAPL.test.ts @@ -48,7 +48,7 @@ describe("APL", () => { await apl.delete(stubAuthData.domain); - expect(spyWriteFile).toBeCalledWith(".auth-data.json", "{}"); + expect(spyWriteFile).toBeCalledWith(".saleor-app-auth.json", "{}"); }); it("Should not delete data when called with unknown domain", async () => { diff --git a/src/APL/fileAPL.ts b/src/APL/fileAPL.ts index 38a60e4..5699238 100644 --- a/src/APL/fileAPL.ts +++ b/src/APL/fileAPL.ts @@ -65,7 +65,7 @@ export class FileAPL implements APL { private fileName: string; constructor(config: FileAPLConfig = {}) { - this.fileName = config?.fileName || ".auth-data.json"; + this.fileName = config?.fileName || ".saleor-app-auth.json"; } async get(domain: string) {