fix: use AuthUserIDKey in context
This commit is contained in:
parent
a41cdbf52c
commit
03f0d80ae5
|
@ -68,7 +68,7 @@ func AuthMiddleware(handler jape.Handler, portal interfaces.Portal) jape.Handler
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx := context.WithValue(r.Context(), "userId", userID)
|
ctx := context.WithValue(r.Context(), AuthUserIDKey, userID)
|
||||||
r = r.WithContext(ctx)
|
r = r.WithContext(ctx)
|
||||||
|
|
||||||
h.ServeHTTP(w, r)
|
h.ServeHTTP(w, r)
|
||||||
|
|
Loading…
Reference in New Issue