CreateUserContext creates a context with the given user's ID for authentication.
(ctx context.Context, userID int32)
| 86 | |
| 87 | // CreateUserContext creates a context with the given user's ID for authentication. |
| 88 | func (*TestService) CreateUserContext(ctx context.Context, userID int32) context.Context { |
| 89 | // Use the context key from the auth package |
| 90 | return context.WithValue(ctx, auth.UserIDContextKey, userID) |
| 91 | } |
no outgoing calls