JuliaComputing / JuliaHub.jl

A Julia client for the JuliaHub platform
https://help.juliahub.com/julia-api/
MIT License
14 stars 3 forks source link

feat: add method to auth with a token directly #58

Closed mortenpi closed 4 months ago

mortenpi commented 5 months ago

Adds a second method to JuliaHub.authenticate that can be used to authenticate JuliaHub.jl directly with a token (rather than interactive auth or reading the auth.toml). Useful for e.g. CI, where you might have the token in an env. variable.

julia> JuliaHub.authenticate("juliahub.com", "eyJhbGciO...IJw")
JuliaHub.Authentication("https://juliahub.com", "mortenpi", *****)

cc @pmodv