Skip to content

Commit c05289e

Browse files
committed
fix remaining TOML imports (no Pkg)
1 parent 22ab0eb commit c05289e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PkgAuthentication.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function step(state::NeedRefresh)::Union{HasNewToken, NoAuthentication}
200200
# errors are recoverable by just getting a new token:
201201
if response isa Downloads.Response && response.status == 200
202202
try
203-
body = Pkg.TOML.parse(String(take!(output)))
203+
body = TOML.parse(String(take!(output)))
204204
let msg = "token refresh response"
205205
assert_dict_keys(body, "access_token", "id_token"; msg=msg)
206206
assert_dict_keys(body, "expires_in"; msg=msg)

test/authserver.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using HTTP, Random, JSON
2-
import Pkg: TOML
2+
import TOML
33

44
const EXPIRY = 30
55
const CHALLENGE_EXPIRY = 10

0 commit comments

Comments
 (0)