feat: add profile sync
This commit is contained in:
1 parent
9947286b1e
commit
000c08dae7
11 files changed
+251
-8
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user