shree_harshaS
ZITADELโ€ข2y agoโ€ข
14 replies
shree_harsha

How to Validate a Session Token in Go Server Middleware After Custom Login?

We are building a custom login screen. After the password check is completed, I pass the session token generated from the response (https://zitadel.com/docs/guides/integrate/login-ui/username-password#response-2). This session token is set as a Bearer token in the request header, which is then sent to a Go server to fetch the user's organizations. However, the Go middleware is unable to validate this token. How can I validate this token on the Go server?
Was this page helpful?