Apache Answer Meta
Questions Tags Users Badges

How to get UID in Golang of Answer source code?

easysys 1
Created Jan 21, 2024 Edited Jan 26, 2024
Viewed 169

How to get UID (User ID) in Golang of Answer source code?

support development
Share
1 Answers
import "github.com/apache/incubator-answer/internal/base/middleware"

userID := middleware.GetLoginUserIDFromContext(ctx)
edited Jan 26, 2024
LinkinStar1741
answered Jan 24, 2024
Related
Minimal example custom route plugin
Can't access apache answer via subdirectory URL when deployed with docker
1 answers
Unable to log in and recover data after reinstalling via docker
1 answers
Building a Custom Docker Image with Plugins for Apache Answer Suggest Best Practices?
1 answers
How to allow the question content to be empty? Some questions are simple enough with just a title
1 answers
Could you please provide information about the default search functionality's search rules?
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Answer Meta.