Move the auth context key and helper from pkg/greet/ to pkg/auth/ where it belongs. The pkg/auth/ package was created by PR #69. The middleware in pkg/server/middleware.go currently imports pkg/greet just to get greet.UserContextKey, which is an inverted dependency.
This refactor has NO behavioral change.
Move the auth context key and helper from pkg/greet/ to pkg/auth/ where it belongs. The pkg/auth/ package was created by PR #69. The middleware in pkg/server/middleware.go currently imports pkg/greet just to get greet.UserContextKey, which is an inverted dependency.
This refactor has NO behavioral change.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Move the auth context key and helper from pkg/greet/ to pkg/auth/ where it belongs. The pkg/auth/ package was created by PR #69. The middleware in pkg/server/middleware.go currently imports pkg/greet just to get greet.UserContextKey, which is an inverted dependency.
This refactor has NO behavioral change.