We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9380678 + 91b032c commit d24cdc2Copy full SHA for d24cdc2
1 file changed
middleware/AuthMiddleware.go
@@ -83,7 +83,9 @@ func Authorizer(sessionManager *SessionManager, whitelistChecker func(url string
83
}
84
85
// setting user id in context
86
- context.WithValue(r.Context(), "userId", userId)
+ ctx := context.WithValue(r.Context(), "userId", userId)
87
+ ctx = context.WithValue(ctx, "token", token)
88
+ r = r.WithContext(ctx)
89
90
91
if pass {
0 commit comments