Skip to content

Commit

Permalink
Fix session token path usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dumazy committed Dec 3, 2023
1 parent 1fb0430 commit e34314e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tool/session_token.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import 'dart:io';

import 'package:quiver/strings.dart';

const aocPath = '.dart_tool/aoc';
const sessionTokenPath = '$aocPath/.session_token';
const sessionTokenPath = '.dart_tool/aoc/.session_token';

String getSessionToken() {
final sessionToken = _readSessionToken();
Expand All @@ -30,7 +29,7 @@ String? _readSessionToken() {

void _writeSessionToken(String token) {
try {
File('$aocPath/$sessionTokenPath')
File(sessionTokenPath)
.create(recursive: true)
.then((file) => file.writeAsStringSync(token));
} catch (e) {
Expand Down

0 comments on commit e34314e

Please sign in to comment.