# gtslib-auth-keyring

[![Build Status](https://build.coopcloud.tech/api/badges/decentral1se/gtslib-auth-keyring/status.svg?ref=refs/heads/main)](https://build.coopcloud.tech/decentral1se/gtslib-auth-keyring)

> [GoToSocial](https://gotosocial.org) client auth with keyring support

**ALPHA SOFTWARE** just like GoToSocial. Uses [`go-keyring`](https://github.com/zalando/go-keyring).

```go
import (
  "log/slog"

  auth "git.coopcloud.tech/decentral1se/gtslib-auth-keyring"
)

func main() {
  if err := auth.Login("foo@bar.zone"); err != nil {
    slog.Error("unable to login", err)
  }
}

```

## ACK

Made possible by the good work of [`slurp`](https://github.com/VyrCossont/slurp).

## License

<a href="https://git.coopcloud.tech/decentral1se/gtslib-auth-keyring/src/branch/main/LICENSE">
  <img src="https://www.gnu.org/graphics/agplv3-with-text-162x68.png" />
</a>
