Skip to content

Commit 9d11d5a

Browse files
committed
don't allow missing in authenticate()
1 parent e0996f9 commit 9d11d5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/authentication.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function authenticate end
267267

268268
function authenticate(
269269
server::AbstractString, token::Union{AbstractString, Secret};
270-
project::Union{AbstractString, UUIDs.UUID, Nothing, Missing}=missing,
270+
project::Union{AbstractString, UUIDs.UUID, Nothing}=_juliahub_project(missing),
271271
)
272272
auth = try
273273
auth = _authentication(
@@ -288,7 +288,7 @@ function authenticate(
288288
force::Bool=false,
289289
maxcount::Integer=_DEFAULT_authenticate_maxcount,
290290
hook::Union{Base.Callable, Nothing}=nothing,
291-
project::Union{AbstractString, UUIDs.UUID, Nothing, Missing}=missing,
291+
project::Union{AbstractString, UUIDs.UUID, Nothing}=_juliahub_project(missing),
292292
)
293293
maxcount >= 1 || throw(ArgumentError("maxcount must be >= 1, got '$maxcount'"))
294294
if !isnothing(hook) && !hasmethod(hook, Tuple{AbstractString})

0 commit comments

Comments
 (0)