We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a03dc5 commit 1230ee5Copy full SHA for 1230ee5
src/storage.ts
@@ -507,11 +507,9 @@ export class Storage {
507
*/
508
public async migrateSessionToken(label: string) {
509
const oldTokenPath = this.getLegacySessionTokenPath(label)
510
+ const newTokenPath = this.getSessionTokenPath(label)
511
try {
- await fs.stat(oldTokenPath)
512
- const newTokenPath = this.getSessionTokenPath(label)
513
await fs.rename(oldTokenPath, newTokenPath)
514
- return
515
} catch (error) {
516
if ((error as NodeJS.ErrnoException)?.code === "ENOENT") {
517
return
0 commit comments