feat: allow multiple auth sources per user (#500,#477)

This commit is contained in:
Christoph Haas
2026-01-13 22:56:53 +01:00
parent 5d58df8a19
commit 70832bfb52
41 changed files with 1115 additions and 773 deletions

View File

@@ -168,3 +168,12 @@ func BoolToFloat64(b bool) float64 {
}
return 0.0
}
// Map applies the given function to each element of the given slice and returns the resulting slice
func Map[T, V any](ts []T, fn func(T) V) []V {
result := make([]V, len(ts))
for i, t := range ts {
result[i] = fn(t)
}
return result
}