fix: use AuthUserIDKey in context

This commit is contained in:
Derrick Hammer 2024-01-17 09:09:48 -05:00
parent a41cdbf52c
commit 03f0d80ae5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func AuthMiddleware(handler jape.Handler, portal interfaces.Portal) jape.Handler
return
}
ctx := context.WithValue(r.Context(), "userId", userID)
ctx := context.WithValue(r.Context(), AuthUserIDKey, userID)
r = r.WithContext(ctx)
h.ServeHTTP(w, r)