fix auth
All checks were successful
/ build (push) Successful in 1m2s

This commit is contained in:
Astra 2025-09-26 09:55:52 +01:00
parent 2afd9af2af
commit 69b715f4ee

View file

@ -106,7 +106,7 @@ func (b *BSky) Auth(authData []string) error {
b.Bluesky.Cfg.Handle = authData[0]
b.getPDS()
auth, err := loadAuth()
if err != nil { // no auth session found
if auth.AccessJWT == "" { // no auth session found
b.Bluesky.Cfg.AppPassword = authData[1]
err = b.Bluesky.CreateSession(b.Bluesky.Cfg)
if err != nil {