zitadel / zitadel-go

ZITADEL Go - The official client library of ZITADEL for an easy integration into your Go project.
https://zitadel.com
Apache License 2.0
66 stars 25 forks source link

Clarification needed on go login example and session storage suitability for production in documentation #323

Open Clasyc opened 4 months ago

Clasyc commented 4 months ago

In the official documentation, I came across a Go login example at https://zitadel.com/docs/examples/login/go.

It recommends using v3:

go get -u github.com/zitadel/zitadel-go/v3

However, if I'm not mistaken, the next branch, which includes this example, is still a WIP. This leaves me a bit confused. Should I be using it?

Additionally, I noticed that the session storage, as outlined here: https://github.com/zitadel/zitadel-go/blob/next/pkg/authentication/session.go, is not recommended for production use.

Does this imply that I should avoid using this implementation and instead develop my own solution? Ideally, the documentation should explicitly state if it is not suitable for production.

Perhaps I'm mistaken; I'm just looking for clarification

fforootd commented 4 months ago

Hm good question. Let us ask @livio-a about this.

heikkilamarko commented 4 months ago

I've been wondering about this as well. v3 doesn't feel production-ready, yet the official docs/examples use it.