Skip to content

fix(jh): set correct auth when server name is juliahub#15

Open
thelonewolf1603 wants to merge 2 commits intomainfrom
nd/auth-juliahub-fix
Open

fix(jh): set correct auth when server name is juliahub#15
thelonewolf1603 wants to merge 2 commits intomainfrom
nd/auth-juliahub-fix

Conversation

@thelonewolf1603
Copy link

@thelonewolf1603 thelonewolf1603 commented Jan 23, 2026

fixes #4

func deviceFlow(server string) (*TokenResponse, error) {
var authServer string
if server == "juliahub.com" {
if server == "juliahub.com" || server == "juliahub.juliahub.com" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this is a valid domain?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so if you add a server name e.g. custom , it will be converted to custom.juliahub.com. so if someone types only juliahub that will be converted to juliahub.juliahub.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jh auth login -s juliahub should login to juliahub.com (not juliahub.juliahub.com)

2 participants