Hello, In the Go SDK docs for kratos in the URL - ...
# talk-kratos
b
Hello, In the Go SDK docs for kratos in the URL - https://www.ory.sh/docs/kratos/sdk/go#operation/getVersion , it’s mentioned in comments that i need to pass in Kratos Admin API URL for using apiClient.V0alpha2Api.ToSession. However, i face error “401 Unauthorised” while doing the same. But the same works well with Kratos Public API. Can someone help me understand if the issue is with the document or am i doing it wrong?
r
I think that may be an error. Haven’t looked but toSession() shows the current user’s session(s). That would be the public api. I’ve only used the admin port with
.Admin…()
methods.