feat: add profile sync

This commit is contained in:
Philipp
2026-06-10 16:32:46 +02:00
parent 9947286b1e
commit 000c08dae7
11 changed files with 251 additions and 8 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func (m Middleware) RequireAuth(next http.Handler) http.Handler {
return
}
next.ServeHTTP(w, r.WithContext(withPrincipal(r.Context(), principal)))
next.ServeHTTP(w, r.WithContext(ContextWithPrincipal(r.Context(), principal)))
})
}
+1 -1
View File
@@ -18,7 +18,7 @@ func PrincipalFromContext(ctx context.Context) (Principal, bool) {
return principal, ok
}
func withPrincipal(ctx context.Context, principal Principal) context.Context {
func ContextWithPrincipal(ctx context.Context, principal Principal) context.Context {
return context.WithValue(ctx, principalContextKey{}, principal)
}