Skip to content

Commit 6b10c56

Browse files
committed
v0.2.0 - fix default key swap
1 parent 067d7d8 commit 6b10c56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gcp-refresh-token",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "A cli util to retrieve a Google OAuth 2.0 refresh token",
55
"author": "Plasmo Corp. <support@plasmo.com>",
66
"license": "MIT",

src/key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const getKey = async (createDefaultKey = false) => {
3434
const newKey = { ...defaultKey }
3535
delete newKey.chrome
3636

37-
await writeFile(keyFilePath, JSON.stringify(defaultKey, null, 2))
37+
await writeFile(keyFilePath, JSON.stringify(newKey, null, 2))
3838
throw new Error(
3939
"No key.json found, a default key was created. Follow the readme for more info: https://github.com/plasmo-corp/gcp-refresh-token"
4040
)

0 commit comments

Comments
 (0)